Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
Prev Previous commit
Next Next commit
fixup! chore: verify base image pushed properly
  • Loading branch information
deansheather committed Mar 1, 2023
commit f944662b8d3ff07c0faa2db0818727bcd9e0e751
5 changes: 3 additions & 2 deletions .github/workflows/docker-base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,20 @@ jobs:
# available immediately
for i in {1..10}; do
rc=0
raw_manifest=$(docker manifest inspect ghcr.io/coder/coder-base:latest || rc=$?)
raw_manifests=$(docker manifest inspect ghcr.io/coder/coder-base:latest) || rc=$?
if [[ "$rc" -eq 0 ]]; then
break
fi
if [[ "$i" -eq 10 ]]; then
echo "Failed to pull manifests after 10 retries"
exit 1
fi
echo "Failed to pull manifests, retrying in 5 seconds"
sleep 5
done

manifests=$(
echo "$raw_manifest" | \
echo "$raw_manifests" | \
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
)

Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -201,19 +201,20 @@ jobs:
# available immediately
for i in {1..10}; do
rc=0
raw_manifest=$(docker manifest inspect ghcr.io/coder/coder-base:latest || rc=$?)
raw_manifests=$(docker manifest inspect "${{ steps.image-base-tag.outputs.tag }}") || rc=$?
if [[ "$rc" -eq 0 ]]; then
break
fi
if [[ "$i" -eq 10 ]]; then
echo "Failed to pull manifests after 10 retries"
exit 1
fi
echo "Failed to pull manifests, retrying in 5 seconds"
sleep 5
done

manifests=$(
echo "$raw_manifest" | \
echo "$raw_manifests" | \
jq -r '.manifests[].platform | .os + "/" + .architecture + (if .variant then "/" + .variant else "" end)'
)

Expand Down