mirror of
https://github.com/devilbox/docker-php-fpm.git
synced 2025-12-11 19:41:16 +00:00
Integrate retry for upload artifact
This commit is contained in:
129
.github/workflows/zzz-reuse-build.yml
vendored
129
.github/workflows/zzz-reuse-build.yml
vendored
@@ -180,7 +180,7 @@ jobs:
|
|||||||
|
|
||||||
|
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
# Artifact Expot
|
# Artifact Expot (base)
|
||||||
# ------------------------------------------------------------
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
###
|
###
|
||||||
@@ -193,10 +193,13 @@ jobs:
|
|||||||
make save VERSION=${{ matrix.version }} FLAVOUR=base ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.base }}
|
make save VERSION=${{ matrix.version }} FLAVOUR=base ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.base }}
|
||||||
if: ${{ inputs.flavour == 'base' }}
|
if: ${{ inputs.flavour == 'base' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 1
|
||||||
|
###
|
||||||
- name: "[Artifact Save] Upload base"
|
- name: "[Artifact Save] Upload base"
|
||||||
uses: Wandalen/wretry.action@v1.0.11
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
with:
|
with:
|
||||||
action: cytopia/upload-artifact-verify-action@v0.1.0
|
action: actions/upload-artifact@v3
|
||||||
with: |
|
with: |
|
||||||
name: ${{ steps.set-artifact-name.outputs.base }}
|
name: ${{ steps.set-artifact-name.outputs.base }}
|
||||||
path: ${{ steps.set-artifact-name.outputs.base }}
|
path: ${{ steps.set-artifact-name.outputs.base }}
|
||||||
@@ -204,6 +207,34 @@ jobs:
|
|||||||
attempt_delay: 10000
|
attempt_delay: 10000
|
||||||
if: ${{ inputs.flavour == 'base' }}
|
if: ${{ inputs.flavour == 'base' }}
|
||||||
|
|
||||||
|
- name: "[Artifact Save] Upload base (verify)"
|
||||||
|
continue-on-error: true
|
||||||
|
id: download-base-1
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.base }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.base }}
|
||||||
|
if: ${{ inputs.flavour == 'base' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 2
|
||||||
|
###
|
||||||
|
- name: "[Artifact Save] Upload base (retry)"
|
||||||
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
|
with:
|
||||||
|
action: actions/upload-artifact@v3
|
||||||
|
with: |
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.base }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.base }}
|
||||||
|
attempt_limit: 20
|
||||||
|
attempt_delay: 10000
|
||||||
|
if: ${{ inputs.flavour == 'base' && steps.download-base-1.outcome == 'failure'}}
|
||||||
|
|
||||||
|
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Artifact Expot (mods)
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
###
|
###
|
||||||
### Export and Upload mods
|
### Export and Upload mods
|
||||||
###
|
###
|
||||||
@@ -214,10 +245,13 @@ jobs:
|
|||||||
make save VERSION=${{ matrix.version }} FLAVOUR=mods ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.mods }}
|
make save VERSION=${{ matrix.version }} FLAVOUR=mods ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.mods }}
|
||||||
if: ${{ inputs.flavour == 'mods' }}
|
if: ${{ inputs.flavour == 'mods' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 1
|
||||||
|
###
|
||||||
- name: "[Artifact Save] Upload mods"
|
- name: "[Artifact Save] Upload mods"
|
||||||
uses: Wandalen/wretry.action@v1.0.11
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
with:
|
with:
|
||||||
action: cytopia/upload-artifact-verify-action@v0.1.0
|
action: actions/upload-artifact@v3
|
||||||
with: |
|
with: |
|
||||||
name: ${{ steps.set-artifact-name.outputs.mods }}
|
name: ${{ steps.set-artifact-name.outputs.mods }}
|
||||||
path: ${{ steps.set-artifact-name.outputs.mods }}
|
path: ${{ steps.set-artifact-name.outputs.mods }}
|
||||||
@@ -225,6 +259,34 @@ jobs:
|
|||||||
attempt_delay: 10000
|
attempt_delay: 10000
|
||||||
if: ${{ inputs.flavour == 'mods' }}
|
if: ${{ inputs.flavour == 'mods' }}
|
||||||
|
|
||||||
|
- name: "[Artifact Save] Upload mods (verify)"
|
||||||
|
continue-on-error: true
|
||||||
|
id: download-mods-1
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.mods }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.mods }}
|
||||||
|
if: ${{ inputs.flavour == 'mods' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 2
|
||||||
|
###
|
||||||
|
- name: "[Artifact Save] Upload mods (retry)"
|
||||||
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
|
with:
|
||||||
|
action: actions/upload-artifact@v3
|
||||||
|
with: |
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.mods }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.mods }}
|
||||||
|
attempt_limit: 20
|
||||||
|
attempt_delay: 10000
|
||||||
|
if: ${{ inputs.flavour == 'mods' && steps.download-mods-1.outcome == 'failure'}}
|
||||||
|
|
||||||
|
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Artifact Expot (prod)
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
###
|
###
|
||||||
### Export and Upload prod
|
### Export and Upload prod
|
||||||
###
|
###
|
||||||
@@ -235,10 +297,13 @@ jobs:
|
|||||||
make save VERSION=${{ matrix.version }} FLAVOUR=prod ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.prod }}
|
make save VERSION=${{ matrix.version }} FLAVOUR=prod ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.prod }}
|
||||||
if: ${{ inputs.flavour == 'prod' }}
|
if: ${{ inputs.flavour == 'prod' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 1
|
||||||
|
###
|
||||||
- name: "[Artifact Save] Upload prod"
|
- name: "[Artifact Save] Upload prod"
|
||||||
uses: Wandalen/wretry.action@v1.0.11
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
with:
|
with:
|
||||||
action: cytopia/upload-artifact-verify-action@v0.1.0
|
action: actions/upload-artifact@v3
|
||||||
with: |
|
with: |
|
||||||
name: ${{ steps.set-artifact-name.outputs.prod }}
|
name: ${{ steps.set-artifact-name.outputs.prod }}
|
||||||
path: ${{ steps.set-artifact-name.outputs.prod }}
|
path: ${{ steps.set-artifact-name.outputs.prod }}
|
||||||
@@ -246,6 +311,34 @@ jobs:
|
|||||||
attempt_delay: 10000
|
attempt_delay: 10000
|
||||||
if: ${{ inputs.flavour == 'prod' }}
|
if: ${{ inputs.flavour == 'prod' }}
|
||||||
|
|
||||||
|
- name: "[Artifact Save] Upload prod (verify)"
|
||||||
|
continue-on-error: true
|
||||||
|
id: download-prod-1
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.prod }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.prod }}
|
||||||
|
if: ${{ inputs.flavour == 'prod' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 2
|
||||||
|
###
|
||||||
|
- name: "[Artifact Save] Upload prod (retry)"
|
||||||
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
|
with:
|
||||||
|
action: actions/upload-artifact@v3
|
||||||
|
with: |
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.prod }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.prod }}
|
||||||
|
attempt_limit: 20
|
||||||
|
attempt_delay: 10000
|
||||||
|
if: ${{ inputs.flavour == 'prod' && steps.download-prod-1.outcome == 'failure'}}
|
||||||
|
|
||||||
|
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
# Artifact Expot (work)
|
||||||
|
# ------------------------------------------------------------
|
||||||
|
|
||||||
###
|
###
|
||||||
### Export and Upload work
|
### Export and Upload work
|
||||||
###
|
###
|
||||||
@@ -256,13 +349,39 @@ jobs:
|
|||||||
make save VERSION=${{ matrix.version }} FLAVOUR=work ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.work }}
|
make save VERSION=${{ matrix.version }} FLAVOUR=work ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.work }}
|
||||||
if: ${{ inputs.flavour == 'work' }}
|
if: ${{ inputs.flavour == 'work' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 1
|
||||||
|
###
|
||||||
- name: "[Artifact Save] Upload work"
|
- name: "[Artifact Save] Upload work"
|
||||||
uses: Wandalen/wretry.action@v1.0.11
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
with:
|
with:
|
||||||
action: cytopia/upload-artifact-verify-action@v0.1.0
|
action: actions/upload-artifact@v3
|
||||||
with: |
|
with: |
|
||||||
name: ${{ steps.set-artifact-name.outputs.work }}
|
name: ${{ steps.set-artifact-name.outputs.work }}
|
||||||
path: ${{ steps.set-artifact-name.outputs.work }}
|
path: ${{ steps.set-artifact-name.outputs.work }}
|
||||||
attempt_limit: 20
|
attempt_limit: 20
|
||||||
attempt_delay: 10000
|
attempt_delay: 10000
|
||||||
if: ${{ inputs.flavour == 'work' }}
|
if: ${{ inputs.flavour == 'work' }}
|
||||||
|
|
||||||
|
- name: "[Artifact Save] Upload work (verify)"
|
||||||
|
continue-on-error: true
|
||||||
|
id: download-work-1
|
||||||
|
uses: actions/download-artifact@v3
|
||||||
|
with:
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.work }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.work }}
|
||||||
|
if: ${{ inputs.flavour == 'work' }}
|
||||||
|
|
||||||
|
###
|
||||||
|
### Try 2
|
||||||
|
###
|
||||||
|
- name: "[Artifact Save] Upload work (retry)"
|
||||||
|
uses: Wandalen/wretry.action@v1.0.11
|
||||||
|
with:
|
||||||
|
action: actions/upload-artifact@v3
|
||||||
|
with: |
|
||||||
|
name: ${{ steps.set-artifact-name.outputs.work }}
|
||||||
|
path: ${{ steps.set-artifact-name.outputs.work }}
|
||||||
|
attempt_limit: 20
|
||||||
|
attempt_delay: 10000
|
||||||
|
if: ${{ inputs.flavour == 'work' && steps.download-work-1.outcome == 'failure'}}
|
||||||
|
|||||||
Reference in New Issue
Block a user