summaryrefslogtreecommitdiff
path: root/.gitlab-ci
diff options
context:
space:
mode:
Diffstat (limited to '.gitlab-ci')
-rwxr-xr-x.gitlab-ci/pull-or-rebuild.sh5
1 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab-ci/pull-or-rebuild.sh b/.gitlab-ci/pull-or-rebuild.sh
index 182c8d49..9f33b414 100755
--- a/.gitlab-ci/pull-or-rebuild.sh
+++ b/.gitlab-ci/pull-or-rebuild.sh
@@ -44,8 +44,9 @@ if [ $IMAGE_PRESENT -eq 0 ] && [ ${FORCE_REBUILD:-0} -eq 0 ] ; then
docker tag $DOCKERNAME $COMMITNAME
else
echo "Building $NAME:$TAG"
- docker build -t $DOCKERNAME -t $NAME \
- -t $REFNAME -t $COMMITNAME -f $DOCKERFILE .
+ docker build --build-arg=CI_COMMIT_SHA=$CI_COMMIT_SHA \
+ -t $DOCKERNAME -t $NAME \
+ -t $REFNAME -t $COMMITNAME -f $DOCKERFILE .
docker push $DOCKERNAME
fi
docker push $REFNAME