Skip to content
Snippets Groups Projects
Commit be64bd54 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Fix CI image deployment

parent 412fdcd5
No related branches found
Tags v2.6.0-2
No related merge requests found
Pipeline #921 passed
...@@ -44,9 +44,8 @@ deploy:commit: ...@@ -44,9 +44,8 @@ deploy:commit:
extends: .docker extends: .docker
variables: variables:
TAG: ${CI_REGISTRY_IMAGE}/commit:${CI_COMMIT_SHORT_SHA} TAG: ${CI_REGISTRY_IMAGE}/commit:${CI_COMMIT_SHORT_SHA}
before_script:
- docker pull ${BUILD_TAG}
script: script:
- docker pull ${BUILD_TAG}
- docker tag ${BUILD_TAG} ${TAG} - docker tag ${BUILD_TAG} ${TAG}
- docker push ${TAG} - docker push ${TAG}
...@@ -63,8 +62,8 @@ deploy:tag: ...@@ -63,8 +62,8 @@ deploy:tag:
except: except:
- /^[^v]/ - /^[^v]/
- /^v[^0-9]/ - /^v[^0-9]/
script: variables:
TAG: ${CI_REGISTRY_IMAGE}:latest
after_script:
- docker tag ${BUILD_TAG} ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v} - docker tag ${BUILD_TAG} ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v}
- docker tag ${BUILD_TAG} ${CI_REGISTRY_IMAGE}:latest
- docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v} - docker push ${CI_REGISTRY_IMAGE}:${CI_COMMIT_TAG#v}
- docker push ${CI_REGISTRY_IMAGE}:latest
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment