Merge pull request #20057 from vrothberg/fix-auto-update-test

fix --authfile auto-update test
This commit is contained in:
OpenShift Merge Robot
2023-09-20 15:05:51 +02:00
committed by GitHub

View File

@ -647,8 +647,10 @@ EOF
--password ${PODMAN_LOGIN_PASS} \
$registry
run_podman tag $IMAGE $image_on_local_registry
run_podman push --tls-verify=false --creds "${PODMAN_LOGIN_USER}:${PODMAN_LOGIN_PASS}" $image_on_local_registry
# Push the image to the registry and pull it down again to make sure we
# have the identical digest in the local storage
run_podman push --tls-verify=false --creds "${PODMAN_LOGIN_USER}:${PODMAN_LOGIN_PASS}" $IMAGE $image_on_local_registry
run_podman pull --tls-verify=false --creds "${PODMAN_LOGIN_USER}:${PODMAN_LOGIN_PASS}" $image_on_local_registry
# Generate a systemd service with the "registry" auto-update policy running
# "top" inside the image we just pushed to the local registry.