Skip to content

Commit

Permalink
fix: image tar file naming
Browse files Browse the repository at this point in the history
  • Loading branch information
RouHim committed Aug 18, 2022
1 parent e95381e commit 9834068
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions .github/workflows/build-image.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -169,24 +169,18 @@ jobs:
name: Scan container for vulnerabilities
needs: build-container-image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container-image-arch: [ amd64, arm64, arm ]
steps:
- name: Download Container Image
uses: actions/download-artifact@v3
with:
name: ${{ matrix.container-image-arch }}
name: amd64
path: .

- name: Restore docker image
run: docker load --input image.tar

- name: Run Trivy vulnerability scanner
uses: aquasecurity/trivy-action@master
with:
image-ref: 'rouhim/this-week-in-past:latest'
scan-type: image
input: image.tar
format: 'table'
exit-code: '1'
ignore-unfixed: true
Expand All @@ -196,15 +190,11 @@ jobs:
name: Test container image
needs: build-container-image
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
container-image-arch: [ amd64, arm64, arm ]
steps:
- name: Download Container Image
uses: actions/download-artifact@v3
with:
name: ${{ matrix.container-image-arch }}
name: amd64
path: .

- name: Restore docker image
Expand Down

0 comments on commit 9834068

Please sign in to comment.