Skip to content

Commit

Permalink
ci: add container scanning to default checks
Browse files Browse the repository at this point in the history
Fixes hyperledger-cacti#1876

Signed-off-by: zondervancalvez <zondervan.v.calvez@accenture.com>
  • Loading branch information
zondervancalvez committed Apr 29, 2022
1 parent 2d14f4b commit 259a56e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/azure-container-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ jobs:
- name: Login to DockerHub Registry
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin


- name: Build Images from Dockerfile
run: |
DOCKER_BUILDKIT=1 docker build -f ./packages/cactus-cmd-api-server/Dockerfile -t cactus-cmd-api-server .
DOCKER_BUILDKIT=1 docker build -f ./whitepaper/Dockerfile -t cactus-whitepaper .

# - uses: Azure/container-scan@v0.1
# with:
# image-name: cactus-besu-all-in-one
Expand All @@ -36,8 +43,11 @@ jobs:

- uses: Azure/container-scan@v0.1
with:
image-name: cactus-cmd-api-server
run: echo "${{ secrets.GITHUB_TOKEN }}" | docker login ghcr.io -u ${{ github.actor }} --password-stdin
images: |
cactus-cmd-api-server
cactus-whitepaper
exit-code: '1'
ignore-unfixed: true

# - uses: Azure/container-scan@v0.1
# with:
Expand Down

0 comments on commit 259a56e

Please sign in to comment.