-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #29 from devilbox/release-0.1.41
Use artifact-upload wrapper
- Loading branch information
Showing
1 changed file
with
29 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -137,41 +137,40 @@ jobs: | |
### | ||
### Export current image | ||
### | ||
- name: "[Artifact Save] Export currently built image" | ||
uses: cytopia/[email protected] | ||
- name: "[Artifact Save] (try-1)" | ||
id: upload-1 | ||
uses: cytopia/[email protected] | ||
continue-on-error: true | ||
with: | ||
command: | | ||
name: ${{ steps.set-artifact-name.outputs.curr }} | ||
path: ${{ steps.set-artifact-name.outputs.curr }} | ||
pre_command: | | ||
make save-verify VERSION=${{ matrix.version }} STAGE=${{ inputs.stage }} FLAVOUR=${{ matrix.flavour }} ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.curr }} INFILE=${{ steps.set-artifact-name.outputs.curr }} | ||
post_command: | | ||
make load INFILE={{download_path}} | ||
if: ${{ inputs.upload_artifact }} | ||
|
||
### | ||
### Upload current image | ||
### | ||
- name: "[Artifact Save] Upload currently built image" | ||
uses: Wandalen/[email protected] | ||
with: | ||
action: actions/upload-artifact@v2 | ||
with: | | ||
name: ${{ steps.set-artifact-name.outputs.curr }} | ||
path: ${{ steps.set-artifact-name.outputs.curr }} | ||
if-no-files-found: error | ||
attempt_limit: 20 | ||
attempt_delay: 10000 | ||
if: ${{ inputs.upload_artifact }} | ||
|
||
### | ||
### Verify uploaded image | ||
### | ||
- name: "[Artifact Save] Download (verify)" | ||
uses: actions/download-artifact@v2 | ||
- name: "[Artifact Save] (try-2)" | ||
id: upload-2 | ||
uses: cytopia/[email protected] | ||
continue-on-error: true | ||
with: | ||
name: ${{ steps.set-artifact-name.outputs.curr }} | ||
path: ${{ steps.set-artifact-name.outputs.curr }}.tmp | ||
if: ${{ inputs.upload_artifact }} | ||
path: ${{ steps.set-artifact-name.outputs.curr }} | ||
pre_command: | | ||
make save-verify VERSION=${{ matrix.version }} STAGE=${{ inputs.stage }} FLAVOUR=${{ matrix.flavour }} ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.curr }} INFILE=${{ steps.set-artifact-name.outputs.curr }} | ||
post_command: | | ||
make load INFILE={{download_path}} | ||
if: ${{ inputs.upload_artifact && steps.upload-1.outcome == 'failure' }} | ||
|
||
- name: "[Artifact Save] Import (verify)" | ||
uses: cytopia/[email protected] | ||
- name: "[Artifact Save] (try-3)" | ||
id: upload-3 | ||
uses: cytopia/[email protected] | ||
with: | ||
command: | | ||
make load INFILE=${{ steps.set-artifact-name.outputs.curr }}.tmp/${{ steps.set-artifact-name.outputs.curr }} | ||
if: ${{ inputs.upload_artifact }} | ||
name: ${{ steps.set-artifact-name.outputs.curr }} | ||
path: ${{ steps.set-artifact-name.outputs.curr }} | ||
pre_command: | | ||
make save-verify VERSION=${{ matrix.version }} STAGE=${{ inputs.stage }} FLAVOUR=${{ matrix.flavour }} ARCH=${{ matrix.arch }} OUTFILE=${{ steps.set-artifact-name.outputs.curr }} INFILE=${{ steps.set-artifact-name.outputs.curr }} | ||
post_command: | | ||
make load INFILE={{download_path}} | ||
if: ${{ inputs.upload_artifact && steps.upload-2.outcome == 'failure' }} |