Skip to content
Snippets Groups Projects
Unverified Commit bf380f27 authored by Frank Sauerburger's avatar Frank Sauerburger
Browse files

Export credentials

parent 3cf404af
No related branches found
No related tags found
No related merge requests found
......@@ -44,5 +44,7 @@ tag-minor:
- if: $CI_COMMIT_TAG
when: manual
script:
- mkdir -p $HOME/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(printf "%s:%s" "${CI_REGISTRY_USER}" "${CI_REGISTRY_PASSWORD}" | base64 | tr -d '\n')\"}}}" > $HOME/.docker/config.json
- export newtag=$(echo $CI_COMMIT_TAG | cut -d. -f 1-2)
- docker buildx imagetools create --tag $CI_REGISTRY_IMAGE:$newtag $CI_REGISTRY_IMAGE:$CI_COMMIT_TAG
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment