Commit 87bb9873 authored by Moul's avatar Moul
Browse files

[fix] latest tag refer to one of the uploaded Docker image Python version

parent 1a0ecb34
Pipeline #7022 passed with stage
in 1 minute and 29 seconds
...@@ -20,11 +20,11 @@ test_build_image: ...@@ -20,11 +20,11 @@ test_build_image:
- docker:dind - docker:dind
script: script:
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" $PYTHON_VERSION - docker build --pull -t "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG" $PYTHON_VERSION
- docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY - docker login -u "gitlab-ci-token" -p "$CI_BUILD_TOKEN" $CI_REGISTRY
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG" - docker tag "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG"
- docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG" - docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG"
- docker tag "$CI_REGISTRY_IMAGE:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest" - docker tag "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:$CI_BUILD_TAG" "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest"
- docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest" - docker push "$CI_REGISTRY_IMAGE/$PYTHON_VERSION:latest"
only: only:
- tags - tags
......
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