Skip to content

Commit e8a2770

Browse files
authored
Merge pull request #38 from devilbox/artifact-save
Replace artifact save action
2 parents aa2dcd4 + 31c3cef commit e8a2770

File tree

1 file changed

+2
-29
lines changed

1 file changed

+2
-29
lines changed

.github/workflows/docker-multistage-build.yml

Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -148,10 +148,8 @@ jobs:
148148
###
149149
### Export current image
150150
###
151-
- name: "[Artifact Save] (try-1)"
152-
id: upload-1
153-
uses: cytopia/[email protected]
154-
continue-on-error: true
151+
- name: "[Artifact Save] Upload built artifact"
152+
uses: cytopia/[email protected]
155153
with:
156154
name: ${{ steps.set-artifact-name.outputs.curr }}
157155
path: ${{ steps.set-artifact-name.outputs.curr }}
@@ -160,28 +158,3 @@ jobs:
160158
post_command: |
161159
make load INFILE={{download_path}}
162160
if: ${{ inputs.upload_artifact }}
163-
164-
- name: "[Artifact Save] (try-2)"
165-
id: upload-2
166-
uses: cytopia/[email protected]
167-
continue-on-error: true
168-
with:
169-
name: ${{ steps.set-artifact-name.outputs.curr }}
170-
path: ${{ steps.set-artifact-name.outputs.curr }}
171-
pre_command: |
172-
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 }}
173-
post_command: |
174-
make load INFILE={{download_path}}
175-
if: ${{ inputs.upload_artifact && steps.upload-1.outcome == 'failure' }}
176-
177-
- name: "[Artifact Save] (try-3)"
178-
id: upload-3
179-
uses: cytopia/[email protected]
180-
with:
181-
name: ${{ steps.set-artifact-name.outputs.curr }}
182-
path: ${{ steps.set-artifact-name.outputs.curr }}
183-
pre_command: |
184-
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 }}
185-
post_command: |
186-
make load INFILE={{download_path}}
187-
if: ${{ inputs.upload_artifact && steps.upload-2.outcome == 'failure' }}

0 commit comments

Comments
 (0)