Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,24 @@ jobs:

- name: Create and push DockerHub manifest
run: |
wait_for_remote_image() {
local image_ref="$1"
local attempts=18
local sleep_seconds=10

for ((i=1; i<=attempts; i++)); do
if docker buildx imagetools inspect "$image_ref" >/dev/null 2>&1; then
return 0
fi

echo "[$i/$attempts] Waiting for $image_ref to become available..."
sleep "$sleep_seconds"
done

echo "Timed out waiting for $image_ref"
return 1
}

GIT_SHA="$(git rev-parse HEAD)"
if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
REF_TYPE="branch"
Expand Down Expand Up @@ -173,6 +191,24 @@ jobs:

- name: Create and push GitHub Container Registry manifest
run: |
wait_for_remote_image() {
local image_ref="$1"
local attempts=18
local sleep_seconds=10

for ((i=1; i<=attempts; i++)); do
if docker buildx imagetools inspect "$image_ref" >/dev/null 2>&1; then
return 0
fi

echo "[$i/$attempts] Waiting for $image_ref to become available..."
sleep "$sleep_seconds"
done

echo "Timed out waiting for $image_ref"
return 1
}

GIT_SHA="$(git rev-parse HEAD)"
if [ "${GITHUB_EVENT_NAME}" = "workflow_dispatch" ]; then
REF_TYPE="branch"
Expand Down
Loading