Skip to content
Snippets Groups Projects
Verified Commit 6eaad8f3 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

fix(shell-tools): Fix manifest detection

`podman manifest inspect` is not suitable for this task. It inspects
image manifests the same way as it does with manifest lists, as a result
it tries to push everything as manifest lists which breaks.

This patch tries to fix that problem by using `podman manifest exists`
instead.
parent e3e965be
Branches
Tags
No related merge requests found
Pipeline #12838 passed
......@@ -66,4 +66,4 @@ if [ "$CONTAINER_IMAGE_NAME" = "invalid" ]; then
fi
# shellcheck disable=SC2086
$CONTAINER_CMD images --format "{{.Repository}}:{{.Tag}}" "$CONTAINER_IMAGE_NAME" | grep "$CONTAINER_IMAGE_NAME" | xargs -L 1 /usr/local/libexec/pushImageOrManifest.sh
$CONTAINER_CMD images --format "{{.Repository}}:{{.Tag}}" "$CONTAINER_IMAGE_NAME" | grep "$CONTAINER_IMAGE_NAME" | xargs -L 1 "$(dirname "$0")/../libexec/pushImageOrManifest.sh"
......@@ -4,7 +4,7 @@ set -o pipefail
set -u
set -e
if podman manifest inspect "$1"; then
if podman manifest exists "$1"; then
podman manifest push --all --format v2s2 "$1" "docker://$1"
else
podman push "$1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment