Replace final CI_COMMITH_SHA to cat version

This commit is contained in:
Daniel_I_Am 2020-08-16 22:23:26 +02:00
parent e5aacd71e4
commit 477f721990
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -119,7 +119,7 @@ docker:
# Build the image # Build the image
- 'docker -H unix:///var/run/docker.sock image build -t chaosbot:`cat version` ./' - 'docker -H unix:///var/run/docker.sock image build -t chaosbot:`cat version` ./'
# Tag the image with a registry tag # 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' - 'docker -H unix:///var/run/docker.sock image tag chaosbot:`cat version` registry.chaoticlogic.us/chaosbot:latest'
# Push the registry images # Push the registry images
- 'docker -H unix:///var/run/docker.sock image push registry.chaoticlogic.us/chaosbot:`cat version`' - 'docker -H unix:///var/run/docker.sock image push registry.chaoticlogic.us/chaosbot:`cat version`'