diff options
author | Jonas Zohren <git-pbkyr@jzohren.de> | 2021-09-02 09:17:25 +0200 |
---|---|---|
committer | Jonas Zohren <git-pbkyr@jzohren.de> | 2021-09-02 09:17:25 +0200 |
commit | 3357bbec1edf0036cd7d25a13119cf8f5e88ec1e (patch) | |
tree | c47162ce217516a954faedba39eb0c27b2c986d9 /.gitlab-ci.yml | |
parent | 102ff574eab09321a60a9e62bf03871c53493076 (diff) | |
download | conduit-3357bbec1edf0036cd7d25a13119cf8f5e88ec1e.zip |
chore: Also run CI on git tags, not only new commits.
Signed-off-by: Jonas Zohren <git-pbkyr@jzohren.de>
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 75bdfd6..640c3ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -19,6 +19,7 @@ variables: needs: [] rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + - if: '$CI_COMMIT_TAG' interruptible: true image: "rust:latest" tags: ["docker"] @@ -106,6 +107,7 @@ build:release:cargo:x86_64-unknown-linux-musl: extends: ".build-cargo-shared-settings" rules: - if: '$CI_COMMIT_BRANCH' + - if: '$CI_COMMIT_TAG' cache: key: "build_cache-$TARGET-debug" script: @@ -151,6 +153,7 @@ build:debug:cargo:x86_64-unknown-linux-musl: needs: [ ] rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + - if: '$CI_COMMIT_TAG' interruptible: true image: "rust:latest" tags: ["docker"] @@ -227,6 +230,7 @@ build:docker:main: --destination "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:commit-$CI_COMMIT_SHORT_SHA" rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + - if: '$CI_COMMIT_TAG' @@ -328,6 +332,7 @@ publish:package: - "build:cargo-deb:x86_64-unknown-linux-gnu" rules: - if: '$CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH' + - if: '$CI_COMMIT_TAG' image: curlimages/curl:latest tags: ["docker"] variables: |