ci: Only run deploy on default branch

This commit is contained in:
Saibotk 2023-11-26 16:46:58 +01:00
parent 334e514566
commit c4cc78c33e
Signed by: saibotk
GPG key ID: 67585F0065E261D5

View file

@ -39,6 +39,8 @@ package:
stage: package stage: package
interruptible: true interruptible: true
image: quay.io/sheogorath/build-ah-engine:latest image: quay.io/sheogorath/build-ah-engine:latest
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
variables: variables:
LANG: C.UTF-8 LANG: C.UTF-8
tags: tags:
@ -56,6 +58,8 @@ test:
tags: tags:
- privileged-ram-4gb - privileged-ram-4gb
image: quay.io/sheogorath/build-ah-engine:latest image: quay.io/sheogorath/build-ah-engine:latest
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
variables: variables:
LANG: C.UTF-8 LANG: C.UTF-8
before_script: before_script:
@ -70,6 +74,8 @@ test:
deploy: deploy:
stage: deploy stage: deploy
rules:
- if: "$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH"
variables: variables:
PLAYBOOK: static_websites.yml PLAYBOOK: static_websites.yml
trigger: trigger: