Use fully qualified name to tag image, not just for pushing

parent 5ebf26b4
......@@ -45,7 +45,7 @@ industrial_ci_kinetic_deploy:
- wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/Dockerfile
- wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/ros_entrypoint.bash
- chmod a+x ros_entrypoint.bash
- docker build -t ${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} .
- docker build -t ${ARTIFACT_DOCKER_URL}/${ARTIFACT_DOCKER_REGISTRY_NAME}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} .
- docker push ${ARTIFACT_DOCKER_URL}/${ARTIFACT_DOCKER_REGISTRY_NAME}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}
only:
- tags
......
......@@ -47,7 +47,7 @@ industrial_ci_kinetic_deploy:
- wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/Dockerfile
- wget https://git.code.tecnalia.com/tecnalia_robotics-public/gitlab_templates/raw/deploy-image-build/deploy/ros_entrypoint.bash
- chmod a+x ros_entrypoint.bash
- docker build -t ${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} .
- docker build -t ${ARTIFACT_DOCKER_URL}/${ARTIFACT_DOCKER_REGISTRY_NAME}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME} .
- docker push ${ARTIFACT_DOCKER_URL}/${ARTIFACT_DOCKER_REGISTRY_NAME}/${CI_PROJECT_NAME}:${CI_COMMIT_REF_NAME}
only:
- 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