fix(ci): Also create versioned docker image
@@ -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 #
# --------------------------------------------------------------------- #
