Skip to content

Commit 4a60907

Browse files
committed
Fix save-docker-image tests
1 parent 56b644d commit 4a60907

1 file changed

Lines changed: 3 additions & 18 deletions

File tree

.github/workflows/test-save-docker-image.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
with:
2727
image-name: 'nginx'
2828
tag: 'alpine'
29+
artifact-name: 'nginx-alpine-basic'
2930

3031
- name: Verify basic test output
3132
run: |
@@ -53,6 +54,7 @@ jobs:
5354
image-name: 'nginx'
5455
tag: 'alpine'
5556
output-path: './custom/nginx-alpine.tar'
57+
artifact-name: 'nginx-alpine-custom'
5658

5759
- name: Verify custom path test
5860
run: |
@@ -94,20 +96,9 @@ jobs:
9496
with:
9597
image-name: 'nginx'
9698
tag: 'alpine'
97-
artifact-name: 'test-nginx-artifact'
99+
artifact-name: 'nginx-alpine-artifact'
98100
artifact-retention-days: 1
99101

100-
- name: Upload additional test artifacts
101-
uses: actions/upload-artifact@v4
102-
if: always()
103-
with:
104-
name: manual-test-artifacts
105-
path: |
106-
${{ steps.test-basic.outputs.saved-path }}
107-
${{ steps.test-custom.outputs.saved-path }}
108-
${{ steps.test-no-artifact.outputs.saved-path }}
109-
retention-days: 1
110-
111102
- name: Test summary
112103
run: |
113104
echo "## Test Results 🧪" >> $GITHUB_STEP_SUMMARY
@@ -122,13 +113,7 @@ jobs:
122113
echo "- Basic test file: \`${{ steps.test-basic.outputs.saved-path }}\` (${{ steps.test-basic.outputs.file-size }} bytes)" >> $GITHUB_STEP_SUMMARY
123114
echo "- Custom path file: \`${{ steps.test-custom.outputs.saved-path }}\` (${{ steps.test-custom.outputs.file-size }} bytes)" >> $GITHUB_STEP_SUMMARY
124115
echo "- Artifact test file: \`${{ steps.test-artifact.outputs.saved-path }}\` (${{ steps.test-artifact.outputs.file-size }} bytes)" >> $GITHUB_STEP_SUMMARY
125-
echo "- No-artifact test file: \`${{ steps.test-no-artifact.outputs.saved-path }}\` (${{ steps.test-no-artifact.outputs.file-size }} bytes)" >> $GITHUB_STEP_SUMMARY
126116
echo "" >> $GITHUB_STEP_SUMMARY
127-
echo "### Artifacts Created" >> $GITHUB_STEP_SUMMARY
128-
echo "- \`docker-image\` (from basic test - auto-uploaded)" >> $GITHUB_STEP_SUMMARY
129-
echo "- \`docker-image\` (from custom path test - auto-uploaded)" >> $GITHUB_STEP_SUMMARY
130-
echo "- \`test-nginx-artifact\` (from artifact test - auto-uploaded)" >> $GITHUB_STEP_SUMMARY
131-
echo "- \`manual-test-artifacts\` (manually uploaded test files)" >> $GITHUB_STEP_SUMMARY
132117
133118
test-error-handling:
134119
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)