Add image scan to deb
This commit is contained in:
parent
f0415daf4f
commit
cd520fab72
1 changed files with 15 additions and 1 deletions
16
.github/workflows/deb.yaml
vendored
16
.github/workflows/deb.yaml
vendored
|
|
@ -42,7 +42,21 @@ jobs:
|
|||
with:
|
||||
username: ${{ secrets.REGISTRY_USERNAME }}
|
||||
password: ${{ secrets.REGISTRY_PASSWORD }}
|
||||
- uses: docker/build-push-action@v2
|
||||
- name: Build image without push
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./deb
|
||||
file: ./deb/Dockerfile
|
||||
load: true
|
||||
tags: protonmail-bridge:latest
|
||||
- name: Scan image
|
||||
uses: anchore/scan-action@v2
|
||||
with:
|
||||
image: protonmail-bridge:latest
|
||||
fail-build: true
|
||||
severity-cutoff: critical
|
||||
- name: Push image
|
||||
uses: docker/build-push-action@v2
|
||||
with:
|
||||
context: ./deb
|
||||
file: ./deb/Dockerfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue