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
24
.github/workflows/main.yml
vendored
24
.github/workflows/main.yml
vendored
@ -50,9 +50,15 @@ jobs:
|
|||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
uses: nick-fields/retry@v2
|
||||||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
with:
|
||||||
docker image push dockcross/base --all-tags
|
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
|
||||||
|
|
||||||
image:
|
image:
|
||||||
name: ${{ matrix.arch_name.image }}
|
name: ${{ matrix.arch_name.image }}
|
||||||
@ -951,6 +957,12 @@ jobs:
|
|||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
if: github.ref == 'refs/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
run: |
|
uses: nick-fields/retry@v2
|
||||||
docker login -u ${{ secrets.DOCKER_USER }} -p ${{ secrets.DOCKER_PASS }}
|
with:
|
||||||
docker image push dockcross/${{ matrix.arch_name.image }} --all-tags
|
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