Commit 850c59c2 authored by Esteban Bosse 's avatar Esteban Bosse

Truncate commit to get short commit

parent 2a612503
Pipeline #32701 failed with stages
in 3 minutes and 14 seconds
......@@ -5,7 +5,7 @@
before_script:
- docker login -u gitlab-ci-token -p $CI_BUILD_TOKEN $CI_REGISTRY
script:
- 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 .
- 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 .
- |
if [ "${CI_COMMIT_REF_NAME}" == "master" ]; then
docker push $CI_REGISTRY_IMAGE/pipeline/images/$NAME
......
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