1
0
Fork 0

Fix tag extraction

This commit is contained in:
Saibotk 2021-01-07 19:16:49 +00:00
parent c41f06881f
commit 2a276be059

View file

@ -23,7 +23,7 @@ tagging-master:
stage: tag stage: tag
script: script:
- podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" - podman pull "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG"
- si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'docker.io/library/python:' Dockerfile | sed -e 's/.*:v//')" - si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'docker.io/library/python:' Dockerfile | sed -e 's/.*://')"
- podman images --format "{{.Repository}}:{{.Tag}}" "$CI_REGISTRY_IMAGE" | grep "$CI_REGISTRY_IMAGE" | xargs -L 1 podman push - podman images --format "{{.Repository}}:{{.Tag}}" "$CI_REGISTRY_IMAGE" | grep "$CI_REGISTRY_IMAGE" | xargs -L 1 podman push
only: only:
- master - master