Commit b088eedf authored by David Diederich's avatar David Diederich
Browse files

Added a step to include the latest tag

parent 853405a2
Pipeline #95 failed with stage
in 16 seconds
......@@ -28,7 +28,10 @@ release:
only: ['tags']
variables:
RELEASE_IMAGE_TAG: $DOCKER_HUB_ACCOUNT/$CI_PROJECT_NAME:$CI_COMMIT_TAG
LATEST_IMAGE_TAG: $DOCKER_HUB_ACCOUNT/$CI_PROJECT_NAME:latest
script:
- docker login -u $DOCKER_HUB_USER -p $DOCKER_HUB_PASSWORD
- docker build -t $RELEASE_IMAGE_TAG .
- docker tag $RELEASE_IMAGE_TAG $LATEST_IMAGE_TAG
- docker push $RELEASE_IMAGE_TAG
- docker push $LATEST_IMAGE_TAG
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment