Commit f7cd2729 authored by Esteban Bosse 's avatar Esteban Bosse

Push no master images too

parent b6ee5027
Pipeline #32705 failed with stages
in 3 minutes and 21 seconds
......@@ -6,8 +6,10 @@
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script:
- docker build --pull -t $CI_REGISTRY_IMAGE/images_staging/${CI_COMMIT_SHA:0:8}/$NAME --build-arg CI_REGISTRY_IMAGE=$CI_REGISTRY_IMAGE -f dockerfiles/$NAME .
- docker push $CI_REGISTRY_IMAGE/images_staging/${CI_COMMIT_SHA:0:8}/$NAME
- |
if [ "${CI_COMMIT_REF_NAME}" == "master" ]; then
docker tag $CI_REGISTRY_IMAGE/images_staging/${CI_COMMIT_SHA:0:8}/$NAME $CI_REGISTRY_IMAGE/images/$NAME
docker push $CI_REGISTRY_IMAGE/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