Вход на сайт

Просмотр новости

Найдите то, что Вас интересует

Complex Multi-Job Matrix with Conditional Deploys Fails on Secret Merging – Need Advanced Debugging Help

Дата публикации: 03-06-2025 18:07:34

Hi @talisman,
You need to use stages with conditional logic and avoid placing deploy: at the root of .travis.yml. Instead, define deploy as a job inside the jobs.include section with a stage: deploy label and use if: to control it.
For example:
stages:
- test
- name: deploy
if: branch = main AND type != pull_request
jobs:
include:
- python: "3.8"
stage: test
script: pytest
- python: "3.9"
stage: test
script: pytest
- python: "3.10"
stage: test
script: pytest
- stage: deploy
if: branch = main AND type != pull_request AND python = "3.10"
script: ./scripts/deploy.sh
Skip deploy if secrets are not set early on in the build:
[ -z "$MY_SECRET_TOKEN" ] && echo "No secret available, skipping deploy." && exit 0
This should handle it, this is a bit more complex case you’re correct. This should get your build working again though.

Схожие новости

#Наименование новостиТональностьИнформативностьДата публикации
1Continuous Integration, Deployment, and Build Failures for a Restaurant Menu Website Using Travis CI0709-02-2026
2Failing after success stage5714-10-2025
3Travis CI Pipeline Reliability Issues While Building, Testing, and Deploying My Real-Time Morse Code Website0720-06-2026
4Travis CI build failing after dependency updates for my website project0706-11-2025
5TRAVIS_COMMIT and TRAVIS_PULL_REQUEST_SHA commit SHA's getting masked in web log output0604-12-2025
6Multi-Service Docker Compose Build in Travis CI with Cross-Container Caching and Service Health Checks0703-06-2025
7Deployment instructions skipped due to DPL compatibility issues0514-10-2025
8How to get travis-ci support?-8602-06-2026
9Travis Displays intermittent "We couldn't display the repository"0519-01-2026

Классификация: Пресс-релизы. Схожих патентов: 0. Схожих новостей: 9. Тональность: 0. Информативность: 5. Источник: travis-ci.community.