Commit 097df5f6 authored by Slack's avatar Slack

Pass commit ref when doing CI builds

parent eb5a4777
......@@ -10,7 +10,7 @@ before_script:
build-master:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE" .
- docker build --pull -t "$CI_REGISTRY_IMAGE" --build-arg "commit_ref=${CI_COMMIT_SHA}" .
- docker push "$CI_REGISTRY_IMAGE"
only:
- master
......@@ -18,7 +18,7 @@ build-master:
build:
stage: build
script:
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" .
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" --build-arg "commit_ref=${CI_COMMIT_SHA}" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
except:
- master
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