1
0
Fork 0

Fix version grep in ci script

This commit is contained in:
Saibotk 2024-01-25 23:39:36 +00:00
parent 278520d373
commit 901114facf

View file

@ -25,7 +25,7 @@ tagging-master:
- privileged-ram-4gb - privileged-ram-4gb
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 'FROM docker.io/gitlab/gitlab-runner:v' Dockerfile | sed -e 's/.*:v//')" - si-tagging -l "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_SLUG" "$CI_REGISTRY_IMAGE" "$(grep -e 'FROM docker.io/gitlab/gitlab-runner:alpine-v' Dockerfile | sed -e 's/.*:v//')"
- 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