Skip to content
Snippets Groups Projects
Commit 8950bfec authored by Moul's avatar Moul
Browse files

ci: Tag image with `latest` tag and publish it

parent b4361461
No related branches found
No related tags found
1 merge request!2Switch to up-to-date Debian, latest tag
Pipeline #38056 passed
......@@ -17,6 +17,8 @@ build_image:
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG"
- docker tag "$CI_REGISTRY_IMAGE:$CI_COMMIT_TAG" "$CI_REGISTRY_IMAGE:latest"
- docker push "$CI_REGISTRY_IMAGE:latest"
only:
- tags
tags:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment