Skip to content

Commit 2a65f72

Browse files
committed
Add retry mechanism for pre-pulling builder image in CI workflow
1 parent 8e1e095 commit 2a65f72

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

.github/workflows/builder.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,12 +113,25 @@ jobs:
113113
username: ${{ github.repository_owner }}
114114
password: ${{ secrets.GITHUB_TOKEN }}
115115

116+
- name: Pre-pull builder image with retry
117+
if: steps.check.outputs.build_arch == 'true'
118+
run: |
119+
IMAGE="ghcr.io/home-assistant/amd64-builder:2026.02.1"
120+
for i in $(seq 1 5); do
121+
echo "Attempt $i to pull $IMAGE..."
122+
docker pull "$IMAGE" && break
123+
echo "Failed, waiting 30s..."
124+
sleep 30
125+
done
126+
docker image inspect "$IMAGE" > /dev/null 2>&1 || exit 1
127+
116128
- name: Build ${{ matrix.addon }} add-on
117129
if: steps.check.outputs.build_arch == 'true'
118130
uses: home-assistant/builder@2026.02.1
119131
with:
120132
args: |
121133
${{ env.BUILD_ARGS }} \
134+
--no-cosign-verify \
122135
--${{ matrix.arch }} \
123136
--target /data/${{ matrix.addon }} \
124137
--image "${{ steps.check.outputs.image }}" \

0 commit comments

Comments
 (0)