mirror of
https://github.com/bensuperpc/dockcross.git
synced 2024-12-22 16:24:27 +01:00
Add retry on deploy step
Add retry on deploy step Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
c068180665
commit
7876c21e62
16
.github/workflows/main.yml
vendored
16
.github/workflows/main.yml
vendored
@ -50,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
|
||||
|
||||
@ -951,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