mirror of
https://github.com/ipfs/kubo.git
synced 2025-05-21 08:56:37 +08:00
fix(ci): timeout and retry docker smoke test
This commit is contained in:
14
.github/workflows/docker-image.yml
vendored
14
.github/workflows/docker-image.yml
vendored
@ -110,9 +110,17 @@ jobs:
|
|||||||
|
|
||||||
# We test all the images on amd64 host here. This uses QEMU to emulate
|
# We test all the images on amd64 host here. This uses QEMU to emulate
|
||||||
# the other platforms.
|
# the other platforms.
|
||||||
- run: docker run --rm $IMAGE_NAME:linux-amd64 --version
|
# NOTE: --version should finish instantly, but sometimes
|
||||||
- run: docker run --rm $IMAGE_NAME:linux-arm-v7 --version
|
# it hangs on github CI (could be qemu issue), so we retry to remove false negatives
|
||||||
- run: docker run --rm $IMAGE_NAME:linux-arm64-v8 --version
|
- name: Smoke-test linux-amd64
|
||||||
|
run: for i in {1..3}; do timeout 15s docker run --rm $IMAGE_NAME:linux-amd64 version --all && break || [ $i = 3 ] && exit 1; done
|
||||||
|
timeout-minutes: 1
|
||||||
|
- name: Smoke-test linux-arm-v7
|
||||||
|
run: for i in {1..3}; do timeout 15s docker run --rm $IMAGE_NAME:linux-arm-v7 version --all && break || [ $i = 3 ] && exit 1; done
|
||||||
|
timeout-minutes: 1
|
||||||
|
- name: Smoke-test linux-arm64-v8
|
||||||
|
run: for i in {1..3}; do timeout 15s docker run --rm $IMAGE_NAME:linux-arm64-v8 version --all && break || [ $i = 3 ] && exit 1; done
|
||||||
|
timeout-minutes: 1
|
||||||
|
|
||||||
# This will only push the previously built images.
|
# This will only push the previously built images.
|
||||||
- if: github.event_name != 'workflow_dispatch' || github.event.inputs.push == 'true'
|
- if: github.event_name != 'workflow_dispatch' || github.event.inputs.push == 'true'
|
||||||
|
Reference in New Issue
Block a user