diff options
Diffstat (limited to '.gitlab/deploy.yml')
| -rw-r--r-- | .gitlab/deploy.yml | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/.gitlab/deploy.yml b/.gitlab/deploy.yml index 22c8633..c32149d 100644 --- a/.gitlab/deploy.yml +++ b/.gitlab/deploy.yml @@ -22,8 +22,8 @@ latest: extends: .docker_tag variables: IMAGE_TAG: latest - only: - - $CI_DEFAULT_BRANCH + rules: + - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH version: extends: .docker_tag @@ -31,15 +31,15 @@ version: - export IMAGE_TAG=${CI_COMMIT_TAG/v/} - echo "Checking that $CI_COMMIT_TAG is last in the changelog" - test "$(grep '^## v' CHANGELOG.md |head -n 1)" = "## $CI_COMMIT_TAG" - only: - - tags + rules: + - if: $CI_COMMIT_TAG allow_failure: false .release: extends: .docker_tag - when: manual - only: - - tags + rules: + - if: $CI_COMMIT_TAG + when: manual after_script: # Also push to registry.gitlab.com/gitlab-org/security-products/analyzers/license-finder - docker login -u gitlab-ci-token -p $GITLAB_TOKEN $CI_REGISTRY |
