Commit c7ea9a73 authored by Finn Herzfeld's avatar Finn Herzfeld 🌵

Try out docker-credential-gitlab

parent f45b2e12
Pipeline #1597 canceled with stages
in 0 seconds
......@@ -5,7 +5,8 @@ build:
stage: build
retry: 2
before_script:
- docker login -u gitlab-ci-token -p ${CI_JOB_TOKEN} ${CI_REGISTRY}
- wget -O /usr/local/bin/docker-credential-gitlab https://git.callpipe.com/finn/docker-credential-gitlab/-/jobs/4128/artifacts/raw/docker-credential-gitlab
- echo "1171cdeab7d568364fec5bbefa2160dbcfa509aa120d7d1da0047a61c818d0dc /usr/local/bin/docker-credential-gitlab" | sha256sum -c -
script:
- docker build -t ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA:0:8} .
- docker tag ${CI_REGISTRY_IMAGE}:${CI_COMMIT_SHA:0:8} ${CI_REGISTRY_IMAGE}:${CI_COMMIT_REF_SLUG}
......
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