Skip to content
Snippets Groups Projects
Verified Commit e65b985a authored by Andre Lehmann's avatar Andre Lehmann :japanese_castle:
Browse files

Use pre-defined functions for getting the tags

parent 31dc30b0
No related branches found
No related merge requests found
......@@ -17,7 +17,8 @@ stages:
IMAGE_PREFIX: $CI_PROJECT_DIR
DOCKERFILE: Dockerfile
script:
- tags="$(awk -F= '/^tags\s*=\s*/{print $2}' "$CONTEXT_DIR/.release" | head -n 1)"
- . .bash-cli/func.sh
- tags="$(get_tags)"
- destination_flags="$(for t in $tags; do echo -n "--destination $CI_REGISTRY_IMAGE/$IMAGE_NAME:$t "; done)"
- mkdir -p /kaniko/.docker
- echo "{\"auths\":{\"$CI_REGISTRY\":{\"auth\":\"$(echo -n ${CI_REGISTRY_USER}:${CI_REGISTRY_PASSWORD} | base64)\"}}}" > /kaniko/.docker/config.json
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment