Skip to content

Commit 9ffa5e7

Browse files
committed
CI: Simplify podman calls thanks to podman v4 in Ubuntu 24.04
Signed-off-by: David Cassany <[email protected]>
1 parent 2ea861d commit 9ffa5e7

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/run_registry.sh

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,9 @@ function push {
4141
# Ugly hack around podman to circumvent the need of adding insecure registries
4242
# at /etc/docker/daemon.json when using the docker client
4343
docker save "${img}" | podman load
44-
tag=${img##*:}
45-
imgID=$(podman images -n | grep "${tag}" | awk '{print $3}' | head -n1)
46-
podman tag "${imgID}" "${reg_img}"
44+
podman tag "${img}" "${reg_img}"
4745
podman push --tls-verify=false "${reg_img}"
48-
podman rmi -f "${imgID}"
46+
podman rmi -f "${img}"
4947
done
5048
}
5149

0 commit comments

Comments
 (0)