Commit 50c4bc14 authored by Ken Hawkins's avatar Ken Hawkins 😨
Browse files

Use CI_PIPELINE_ID to ensure the docker image is fresh for each pipeline, even if a tag is rebuilt

parent dbeb6961
Pipeline #63066 passed with stage
in 6 minutes and 47 seconds
......@@ -3,9 +3,10 @@ variables:
# Can't use the {::8} notation to get a short sha in the variables section, so exporting below
# Also the CI_REGISTRY variable is set incorrectly in GitLab - so exporting to correct value
# We use CI_PIPELINE_ID to ensure the docker image is fresh for each pipeline, even if a tag is rebuilt
before_script:
- export CI_COMMIT_SHA_SHORT=${CI_COMMIT_SHA::8}
- export IMAGE_NAME=$CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
- export IMAGE_NAME=$CI_REGISTRY_IMAGE/$CI_PIPELINE_ID
include:
- template: Container-Scanning.gitlab-ci.yml
......
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