Skip to content

Commit

Permalink
Simplify podman calls in CI steup
Browse files Browse the repository at this point in the history
Ubuntu 24.04 ships podman v4 which fixes a v3 issue
on loading images. With v4 loaded images keep the
image name if present.

Signed-off-by: David Cassany <[email protected]>
  • Loading branch information
davidcassany committed Dec 13, 2024
1 parent 0d03cc7 commit 56722ea
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions scripts/run_registry.sh
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,9 @@ function push {
# Ugly hack around podman to circumvent the need of adding insecure registries
# at /etc/docker/daemon.json when using the docker client
docker save "${img}" | podman load
tag=${img##*:}
imgID=$(podman images -n | grep "${tag}" | awk '{print $3}' | head -n1)
podman tag "${imgID}" "${reg_img}"
podman tag "${img}" "${reg_img}"
podman push --tls-verify=false "${reg_img}"
podman rmi -f "${imgID}"
podman rmi -f "${img}"
done
}

Expand Down

0 comments on commit 56722ea

Please sign in to comment.