Skip to content
11 changes: 6 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ services:
branches:
only:
- master
- el9
- main
- /^(.*-test-deploy)$/

notifications:
email:
Expand Down Expand Up @@ -66,11 +67,11 @@ install:

stages:
- name: BUILD_AND_TEST
if: branch = master OR branch = el9
if: branch = master OR branch = main OR branch =~ ^(.*-test-deploy)$
- name: BUILD
if: branch = master OR branch = el9
if: branch = master OR branch = main OR branch =~ ^(.*-test-deploy)$
- name: TEST_DEPLOYED_IMAGE
if: ((branch = master) and (type != pull_request)) or (branch = el9)
if: ((branch = master or branch = main) and (type != pull_request)) or (branch =~ ^(.*-test-deploy)$)
- name: disabled
if: branch = disabled

Expand Down Expand Up @@ -255,7 +256,7 @@ deploy:
- provider: script
script: bash "$TRAVIS_BUILD_DIR/travis/deploy_to_docker_hub.sh"
on:
branch: el9
branch: /(.*-test-deploy)$/
condition: $DEPLOY_ME = "true"