Skip to content

Commit

Permalink
Decouples scan / publish for UI Docker image (#1353)
Browse files Browse the repository at this point in the history
Move scan after publish so it doesn't preclude on failure
  • Loading branch information
skovati authored Jun 26, 2024
1 parent f4fdff0 commit 70f346c
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,6 @@ jobs:
context: .
load: true
tags: ${{ env.REGISTRY }}/nasa-ammos/aerie-ui:${{ github.sha }}
- name: Scan aerie-ui Docker image
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.REGISTRY }}/nasa-ammos/aerie-ui:${{ github.sha }}
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL'
- name: Push Docker Image
uses: docker/build-push-action@v5
with:
Expand All @@ -65,3 +57,11 @@ jobs:
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
- name: Scan aerie-ui Docker image
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ env.REGISTRY }}/nasa-ammos/aerie-ui:${{ github.sha }}
format: 'table'
exit-code: '1'
ignore-unfixed: true
severity: 'CRITICAL'

0 comments on commit 70f346c

Please sign in to comment.