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
34
.github/workflows/Build.yml
vendored
34
.github/workflows/Build.yml
vendored
@ -43,20 +43,24 @@ 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:
|
||||||
context: .
|
attempt_limit: 3
|
||||||
file: ./Dockerfile
|
attempt_delay: 1000
|
||||||
push: ${{ env.needToPush }}
|
action: docker/build-push-action@v6.7.0
|
||||||
tags: |
|
with: |
|
||||||
${{ env.OWNER }}/${{ env.REPO }}:${{ env.TAG }}
|
context: .
|
||||||
${{ env.TAG == 'steam_legacy' && format('{0}/{1}:latest', env.OWNER, env.REPO) || null}}
|
file: ./Dockerfile
|
||||||
build-args: |
|
push: ${{ env.needToPush }}
|
||||||
APPBRANCH=${{ matrix.branch }}
|
tags: |
|
||||||
MOD=${{ matrix.mod }}
|
${{ env.OWNER }}/${{ env.REPO }}:${{ env.TAG }}
|
||||||
cache-from: type=gha,scope=build-${{ matrix.mod }}-${{ matrix.branch }}
|
${{ env.TAG == 'steam_legacy' && format('{0}/{1}:latest', env.OWNER, env.REPO) || null}}
|
||||||
cache-to: type=gha,mode=max,scope=build-${{ matrix.mod }}-${{ matrix.branch }}
|
build-args: |
|
||||||
|
APPBRANCH=${{ matrix.branch }}
|
||||||
|
MOD=${{ matrix.mod }}
|
||||||
|
cache-from: type=gha,scope=build-${{ matrix.mod }}-${{ matrix.branch }}
|
||||||
|
cache-to: type=gha,mode=max,scope=build-${{ matrix.mod }}-${{ matrix.branch }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user