From 477f72199067da5a1f3d58c828475b2f33909f6b Mon Sep 17 00:00:00 2001 From: Daniel-I-Am Date: Sun, 16 Aug 2020 22:23:26 +0200 Subject: [PATCH] Replace final CI_COMMITH_SHA to cat version --- .gitlab-ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 25b5679..7adb043 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -119,7 +119,7 @@ docker: # Build the image - 'docker -H unix:///var/run/docker.sock image build -t chaosbot:`cat version` ./' # Tag the image with a registry tag - - 'docker -H unix:///var/run/docker.sock image tag chaosbot:`cat version` registry.chaoticlogic.us/chaosbot:$CI_COMMIT_SHA' + - 'docker -H unix:///var/run/docker.sock image tag chaosbot:`cat version` registry.chaoticlogic.us/chaosbot`cat version`' - 'docker -H unix:///var/run/docker.sock image tag chaosbot:`cat version` registry.chaoticlogic.us/chaosbot:latest' # Push the registry images - 'docker -H unix:///var/run/docker.sock image push registry.chaoticlogic.us/chaosbot:`cat version`'