Skip to content

Commit 3803560

Browse files
committed
fix workflow
1 parent 62a9204 commit 3803560

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ jobs:
1818
outputs:
1919
image_tag: ${{ steps.vars.outputs.commit_hash }}
2020
tar_file: ${{ steps.vars.outputs.tar_file }}
21+
image_name: ${{ steps.vars.outputs.artifact_name }}
2122
steps:
2223
- name: Checkout repository
2324
uses: actions/checkout@v4
@@ -49,7 +50,7 @@ jobs:
4950
- name: Upload Docker image artifact
5051
uses: actions/upload-artifact@v4
5152
with:
52-
name: ${{ env.artifact_name }}
53+
name: ${{ env.tar_file }}
5354
path: ${{ env.tar_file }}
5455
retention-days: 1
5556

@@ -64,7 +65,7 @@ jobs:
6465

6566
- name: Load Docker image
6667
run: |
67-
docker load -i ndc-openapi-${{ needs.build-docker-image.outputs.image_tag }}.tar
68+
docker load -i ${{ needs.build-docker-image.outputs.tar_file }}
6869
6970
- name: Run Trivy vulnerability scan
7071
uses: aquasecurity/trivy-action@master

0 commit comments

Comments
 (0)