mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 08:24:25 +01:00
Revert "Update with better retry methods"
This reverts commit c9e7d316ca
.
This commit is contained in:
parent
c9e7d316ca
commit
267bdda5e3
34
.github/workflows/main.yml
vendored
34
.github/workflows/main.yml
vendored
@ -25,7 +25,13 @@ jobs:
|
||||
fetch-depth: 1
|
||||
|
||||
- name: build
|
||||
run: for i in {1..3}; do make base && break || sleep 30; done
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 120
|
||||
retry_wait_seconds: 40
|
||||
max_attempts: 3
|
||||
retry_on: error
|
||||
command: make base
|
||||
|
||||
- name: test
|
||||
run: make base.test
|
||||
@ -33,7 +39,7 @@ jobs:
|
||||
- name: archive base
|
||||
run: |
|
||||
mkdir -p cache
|
||||
docker save dockcross/base:latest | xz -e7 -T0 > ./cache/base.tar.xz
|
||||
docker save dockcross/base:latest | xz -e9 -T0 > ./cache/base.tar.xz
|
||||
|
||||
- name: save base
|
||||
uses: actions/upload-artifact@v3
|
||||
@ -44,7 +50,13 @@ jobs:
|
||||
|
||||
- name: deploy
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
retry_wait_seconds: 30
|
||||
max_attempts: 4
|
||||
retry_on: error
|
||||
command: |
|
||||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
||||
docker image push dockcross/base --all-tags
|
||||
|
||||
@ -857,7 +869,13 @@ jobs:
|
||||
run: xz -d -k < ./cache/base.tar.xz | docker load
|
||||
|
||||
- name: build
|
||||
run: for i in {1..3}; do make ${{ matrix.arch_name.image }} && break || sleep 30; done
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 360
|
||||
retry_wait_seconds: 20
|
||||
max_attempts: 3
|
||||
retry_on: error
|
||||
command: make ${{ matrix.arch_name.image }}
|
||||
|
||||
- name: basic test
|
||||
run: make ${{ matrix.arch_name.image }}.test
|
||||
@ -939,6 +957,12 @@ jobs:
|
||||
|
||||
- name: deploy
|
||||
if: github.ref == 'refs/heads/master'
|
||||
run: |
|
||||
uses: nick-fields/retry@v2
|
||||
with:
|
||||
timeout_minutes: 30
|
||||
retry_wait_seconds: 30
|
||||
max_attempts: 4
|
||||
retry_on: error
|
||||
command: |
|
||||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
||||
docker image push dockcross/${{ matrix.arch_name.image }} --all-tags
|
||||
|
Loading…
Reference in New Issue
Block a user