mirror of
https://github.com/rehlds/testdemos.git
synced 2025-04-24 15:23:35 +03:00
Retry step feature (#12)
This commit is contained in:
parent
019b388e10
commit
64194a90ce
6
.github/workflows/Build.yml
vendored
6
.github/workflows/Build.yml
vendored
@ -43,12 +43,16 @@ jobs:
|
|||||||
password: ${{ secrets.DOCKER_PERSONAL_ACCESS_TOKEN }}
|
password: ${{ secrets.DOCKER_PERSONAL_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Build and push Docker image
|
- name: Build and push Docker image
|
||||||
uses: docker/build-push-action@v6.7.0
|
uses: Wandalen/wretry.action@v3.5.0
|
||||||
env:
|
env:
|
||||||
OWNER: ${{ vars.DOCKER_USERNAME }}
|
OWNER: ${{ vars.DOCKER_USERNAME }}
|
||||||
REPO: ${{ vars.DOCKER_REPOSITORY }}
|
REPO: ${{ vars.DOCKER_REPOSITORY }}
|
||||||
TAG: ${{ matrix.branch }}
|
TAG: ${{ matrix.branch }}
|
||||||
with:
|
with:
|
||||||
|
attempt_limit: 3
|
||||||
|
attempt_delay: 1000
|
||||||
|
action: docker/build-push-action@v6.7.0
|
||||||
|
with: |
|
||||||
context: .
|
context: .
|
||||||
file: ./Dockerfile
|
file: ./Dockerfile
|
||||||
push: ${{ env.needToPush }}
|
push: ${{ env.needToPush }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user