summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorDaniel Wiesenberg <weasy@hotmail.de>2021-08-31 18:03:44 +0200
committerDaniel Wiesenberg <weasy@hotmail.de>2021-08-31 18:03:44 +0200
commita08ea1569599fa12e31f1ac45bc24374cf9dacaf (patch)
treede5e7bd4141ca4345bc175837ed9d372693ca9e5 /.gitlab-ci.yml
parent9ded40e98329a02c1d504ae328c7ce4b8ca951da (diff)
downloadconduit-a08ea1569599fa12e31f1ac45bc24374cf9dacaf.zip
Use `$CI_COMMIT_SHORT_SHA` for `GIT_REF`
Using `$CI_COMMIT_REF_NAME` means we get `master` for every image build, which is not very useful/informative. Using `$CI_COMMIT_SHORT_SHA`, on the other hand, makes it possible to see exactly from which commit an image was built.
Diffstat (limited to '.gitlab-ci.yml')
-rw-r--r--.gitlab-ci.yml2
1 files changed, 1 insertions, 1 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 6f6f56f..75bdfd6 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -217,7 +217,7 @@ build:docker:main:
--context $CI_PROJECT_DIR
--build-arg CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ')
--build-arg VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml)
- --build-arg "GIT_REF=$CI_COMMIT_REF_NAME"
+ --build-arg "GIT_REF=$CI_COMMIT_SHORT_SHA"
--dockerfile "$CI_PROJECT_DIR/docker/ci-binaries-packaging.Dockerfile"
--destination "$CI_REGISTRY_IMAGE/conduit:latest"
--destination "$CI_REGISTRY_IMAGE/conduit:alpine"