Commit 182a73b9 authored by Sigmund Augdal's avatar Sigmund Augdal

Fix docker build job template

Splitting lines like this somehow causes leading whitespace in the
arguments passed to docker build. Rather than figuring out the proper
syntax, lets go with a monster line
parent ee344f45
......@@ -13,11 +13,7 @@ variables:
script:
- mkdir -p "$HOME/.docker"
- echo -n "$DOCKER_AUTH_CONFIG" >"$HOME/.docker/config.json"
- docker build -t "$CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG" \
--label "no.uninett.scm.commit_sha=${CI_COMMIT_SHA}" \
--label "no.uninett.scm.pipeline_id=${CI_PIPELINE_ID}" \
--label "no.uninett.scm.project_url=${CI_PROJECT_URL}" \
.
- docker build -t "$CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG" --label "no.uninett.scm.commit_sha=${CI_COMMIT_SHA}" --label "no.uninett.scm.pipeline_id=${CI_PIPELINE_ID}" --label "no.uninett.scm.project_url=${CI_PROJECT_URL}" .
- docker push "$CI_REGISTRY_IMAGE:$CI_REGISTRY_TAG"
.imagescan:
......
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