Updated CI pipeline config to only deploy to staging on the branch "staging".

This commit is contained in:
s3lph 2018-08-02 17:21:22 +02:00
parent 3bca08e7ff
commit 1dd1640cbe

View file

@ -29,7 +29,7 @@ build:
- docker push "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)" - docker push "registry.gitlab.com/s3lph/matemat:$(git rev-parse HEAD)"
- docker push registry.gitlab.com/s3lph/matemat:latest-staging - docker push registry.gitlab.com/s3lph/matemat:latest-staging
only: only:
- /^staging-.*$/ - staging
staging: staging:
stage: staging stage: staging
@ -41,4 +41,4 @@ staging:
name: staging name: staging
url: https://matemat.kernelpanic.lol/ url: https://matemat.kernelpanic.lol/
only: only:
- /^staging-.*$/ - staging