diff options
| author | mo khan <mo.khan@gmail.com> | 2020-05-22 10:15:31 -0600 |
|---|---|---|
| committer | mo khan <mo.khan@gmail.com> | 2020-05-22 10:46:01 -0600 |
| commit | d6572391cbcb5ce18b215166dde9d4ba14aa1828 (patch) | |
| tree | e4713f0a0482f0c1594ddf6bb9e441c80a82e6ef /.gitlab/deploy.yml | |
| parent | 6c5c3bc7d17ba5bc30924373ec6346a252f2e946 (diff) | |
Use rules instead of only
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 |
