Commit 6ee22569 authored by GILLES Sebastien's avatar GILLES Sebastien
Browse files

#16 Fix the tag which were not properly set.

parent 614943c7
Pipeline #248522 passed with stage
in 20 minutes and 19 seconds
...@@ -13,7 +13,7 @@ build_docker: ...@@ -13,7 +13,7 @@ build_docker:
# Latest is always generated but not pushed if ${UPDATE_LATEST_TAG} is not "True" # Latest is always generated but not pushed if ${UPDATE_LATEST_TAG} is not "True"
- docker build -f docker/Dockerfile -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:${TAG} -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest . - docker build -f docker/Dockerfile -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:${TAG} -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest .
- docker container prune - docker container prune
- docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest - docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:${TAG}
- if [ "${UPDATE_LATEST_TAG}" == "True" ]; then docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest; fi - if [ "${UPDATE_LATEST_TAG}" == "True" ]; then docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling:latest; fi
build_docker_full: build_docker_full:
...@@ -26,4 +26,5 @@ build_docker_full: ...@@ -26,4 +26,5 @@ build_docker_full:
# Latest is always generated but not pushed if ${UPDATE_LATEST_TAG} is not "True" # Latest is always generated but not pushed if ${UPDATE_LATEST_TAG} is not "True"
- docker build -f docker/Dockerfile_full -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:${TAG} -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest . - docker build -f docker/Dockerfile_full -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:${TAG} -t $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest .
- docker container prune - docker container prune
- docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:${TAG}
- if [ "${UPDATE_LATEST_TAG}" == "True" ]; then docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest; fi - if [ "${UPDATE_LATEST_TAG}" == "True" ]; then docker push $CI_REGISTRY/$CI_PROJECT_PATH/xeus-cling-and-compilers:latest; fi
\ No newline at end of file
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