We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f150d52 commit a316a64Copy full SHA for a316a64
1 file changed
.github/workflows/CI.yml
@@ -28,7 +28,21 @@ jobs:
28
architecture: x64
29
- name: Make wheel
30
run: |
31
- sudo docker build -t flatterer-anylinux .
+ # quay.io can be flaky, so retry the build (which pulls the base image) a few times
32
+ for attempt in 1 2 3 4 5; do
33
+ echo "::group::docker build (attempt $attempt)"
34
+ if sudo docker build -t flatterer-anylinux .; then
35
+ echo "::endgroup::"
36
+ break
37
+ fi
38
39
+ if [ "$attempt" -eq 5 ]; then
40
+ echo "docker build failed after $attempt attempts" >&2
41
+ exit 1
42
43
+ echo "docker build failed (attempt $attempt), retrying in $((attempt * 5))s..."
44
+ sleep $((attempt * 5))
45
+ done
46
sudo docker run -v $(pwd):/io flatterer-anylinux build -f --release --out dist
47
- name: Upload wheels
48
uses: actions/upload-artifact@v4
0 commit comments