summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPatrick Spek <p.spek@tyil.nl>2019-10-17 17:09:45 +0200
committerPatrick Spek <p.spek@tyil.nl>2019-10-17 17:09:45 +0200
commit7063134acddaed23786a3830a43d06c2af595c30 (patch)
tree1cf36e06896655626c366a6ee01d8679b61ec996
parent9fa36fa01300cf95d78e7591d8c02f88a6f0a0dd (diff)
Make Gitlab CI also create a sha-tagged Docker image
-rw-r--r--.gitlab-ci.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9a95532..1d9b323 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -28,3 +28,5 @@ push:
script:
- docker build -t $CI_REGISTRY_IMAGE:latest .
- docker push $CI_REGISTRY_IMAGE:latest
+ - docker tag $CI_REGISTRY_IMAGE:latest $CI_REGISTRY_IMAGE:ci-$CI_COMMIT_SHA
+ - docker push $CI_REGISTRY_IMAGE:ci-$CI_COMMIT_SHA