Commit 2a612503 authored by Esteban Bosse 's avatar Esteban Bosse

Try to push images to new path from build template

parent 2b6596e7
Pipeline #32700 failed with stages
in 1 minute and 28 seconds
......@@ -5,10 +5,10 @@
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script:
- docker build --pull -t $CI_REGISTRY_IMAGE/$NAME --build-arg CI_REGISTRY_IMAGE=$CI_REGISTRY_IMAGE -f dockerfiles/$NAME .
- docker build --pull -t $CI_REGISTRY_IMAGE/images_staging/$CI_COMMIT_SHORT_SHA/$NAME --build-arg CI_REGISTRY_IMAGE=$CI_REGISTRY_IMAGE -f dockerfiles/$NAME .
- |
if [ "${CI_COMMIT_REF_NAME}" == "master" ]; then
docker push $CI_REGISTRY_IMAGE/$NAME
docker push $CI_REGISTRY_IMAGE/pipeline/images/$NAME
fi
......
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