Commit 8630a634 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Tag Docker images built from Git tags as 'latest'

This is safe as long as:
* Pushed version tags are monotonic (reasonable for the foreseable
  future)
* Version tag builds are not re-run from the web-UI
parent 07e4ddc1
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -94,4 +94,6 @@ deploy:tag:
  script:
    - docker pull ${BUILD_TAG}
    - 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}:latest