diff options
author | Jonas Zohren <git-pbkyr@jzohren.de> | 2022-02-15 11:17:32 +0100 |
---|---|---|
committer | Jonas Zohren <git-pbkyr@jzohren.de> | 2022-02-15 11:17:32 +0100 |
commit | 77f4b68c8e9f610a6960daaaf6502a7da9936130 (patch) | |
tree | 587e36f07b54a6b8690a135000c794b56f32843c /.gitlab-ci.yml | |
parent | 9cfef51af36460b67805688c382fc8540c6ec18b (diff) | |
download | conduit-77f4b68c8e9f610a6960daaaf6502a7da9936130.zip |
fix(ci): Also create versioned docker image
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r-- | .gitlab-ci.yml | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 8d701c2..40716fa 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -220,6 +220,20 @@ docker:master:dockerhub: variables: TAG: "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:latest" +docker:tags:gitlab: + extends: .docker-shared-settings + rules: + - if: "$CI_COMMIT_TAG" + variables: + TAG: "$CI_REGISTRY_IMAGE/matrix-conduit:$CI_COMMIT_TAG" + +docker:tags:dockerhub: + extends: .docker-shared-settings + rules: + - if: "$CI_COMMIT_TAG && $DOCKER_HUB" + variables: + TAG: "$DOCKER_HUB_IMAGE/matrixconduit/matrix-conduit:$CI_COMMIT_TAG" + # --------------------------------------------------------------------- # # Run tests # # --------------------------------------------------------------------- # |