From 682ee53d19d98258f963699aa3652e044107fedf Mon Sep 17 00:00:00 2001 From: hael Date: Fri, 28 Mar 2025 15:35:43 +0100 Subject: [PATCH] debug --- scripts/scheduler/entrypoint.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/scheduler/entrypoint.sh b/scripts/scheduler/entrypoint.sh index b9a0b46..69a2b1e 100644 --- a/scripts/scheduler/entrypoint.sh +++ b/scripts/scheduler/entrypoint.sh @@ -434,6 +434,7 @@ check_update() { REMOTE_URL="registry.hub.docker.com" TEMP_PATH=$IMAGE TEMP_IMAGE=$(echo $TEMP_PATH | cut -d ':' -f1) + echo 'curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:{'$TEMP_IMAGE'}:pull"' TOKEN=$(curl -s "https://auth.docker.io/token?service=registry.docker.io&scope=repository:{$TEMP_IMAGE}:pull" | jq -r .token) TOKEN_HEADER='-H "Authorization: Bearer '$TOKEN'"' else @@ -470,7 +471,7 @@ check_update() { #debug "docker images -q --no-trunc $REPOSITORY_URL/$TEMP_IMAGE:$TEMP_VERSION"; #local_digest=$(docker images -q --no-trunc $REPOSITORY_URL/$TEMP_IMAGE:$TEMP_VERSION) - debug "docker image inspect $REPOSITORY_URL/$TEMP_IMAGE:$TEMP_VERSION --format '{{index .RepoDigests 0}}' | cut -d '@' -f2" + debug "docker image inspect $IMAGE --format '{{index .RepoDigests 0}}' | cut -d '@' -f2" # Digest for the whole manifest, which includes all architectures. local_digest=$(docker image inspect $IMAGE --format '{{index .RepoDigests 0}}' | cut -d '@' -f2)