Commit 1c6e59fa authored by Achilleas Pipinellis's avatar Achilleas Pipinellis

Merge branch 'master' into 'master'

Fixing code snippet to reference the right environment variable

See merge request gitlab-org/gitlab!25571
parents c05c48e8 3fbd965c
...@@ -65,7 +65,7 @@ To enable Container Scanning in your pipeline, you need: ...@@ -65,7 +65,7 @@ To enable Container Scanning in your pipeline, you need:
services: services:
- docker:19.03.1-dind - docker:19.03.1-dind
variables: variables:
IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_REF_SHA IMAGE_TAG: $CI_REGISTRY_IMAGE/$CI_COMMIT_REF_SLUG:$CI_COMMIT_SHA
script: script:
- docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY - docker login -u $CI_REGISTRY_USER -p $CI_REGISTRY_PASSWORD $CI_REGISTRY
- docker build -t $IMAGE_TAG . - docker build -t $IMAGE_TAG .
......
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