ci: Only run deploy on default branch
This commit is contained in:
parent
334e514566
commit
c4cc78c33e
1 changed files with 6 additions and 0 deletions
|
@ -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:
|
||||||
|
|
Loading…
Add table
Reference in a new issue