Merge pull request #696 from bensuperpc/retry_method

Improve CI
This commit is contained in:
Bensuperpc 2022-05-20 17:43:40 +02:00 committed by GitHub
commit b62574a60a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,13 +25,7 @@ jobs:
fetch-depth: 1
- name: build
uses: nick-fields/retry@v2
with:
timeout_minutes: 120
retry_wait_seconds: 40
max_attempts: 3
retry_on: error
command: make base
run: make base
- name: test
run: make base.test
@ -50,13 +44,7 @@ jobs:
- name: deploy
if: github.ref == 'refs/heads/master'
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
retry_wait_seconds: 30
max_attempts: 4
retry_on: error
command: |
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
docker image push dockcross/base --all-tags
@ -869,13 +857,7 @@ jobs:
run: xz -d -k < ./cache/base.tar.xz | docker load
- name: build
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 }}
run: make ${{ matrix.arch_name.image }}
- name: basic test
run: make ${{ matrix.arch_name.image }}.test
@ -957,12 +939,6 @@ jobs:
- name: deploy
if: github.ref == 'refs/heads/master'
uses: nick-fields/retry@v2
with:
timeout_minutes: 30
retry_wait_seconds: 30
max_attempts: 4
retry_on: error
command: |
run: |
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
docker image push dockcross/${{ matrix.arch_name.image }} --all-tags