Check if the new image tag exists

This commit is contained in:
Tobias Genannt
2023-04-19 10:14:44 +02:00
parent 155e90c99f
commit 858611ad67
2 changed files with 13 additions and 3 deletions

View File

@ -1,5 +1,11 @@
#!/bin/bash
check_if_tags_exists() {
local image=$1
local tag=$2
skopeo list-tags "docker://$image" | jq -r ".Tags | contains([\"$tag\"])"
}
get_image_label() {
local label=$1
local image=$2