Skip to content

Commit

Permalink
Updates to action
Browse files Browse the repository at this point in the history
  • Loading branch information
thavelock committed Sep 10, 2024
1 parent 9f4b904 commit fb82322
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/container-build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ on:
branches:
- master

env:
IMAGE_NAME: troysnyk/snyk-juice-shop:linux

jobs:
docker:
runs-on: ubuntu-latest
Expand All @@ -24,11 +27,18 @@ jobs:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Extract metadata
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.IMAGE_NAME }}

- name: Build and push
uses: docker/build-push-action@v5
uses: docker/build-push-action@v6
with:
push: true
tags: troysnyk/snyk-juice-shop:linux
provenance: mode=max
ags: ${{ steps.meta.outputs.tags }}

- uses: snyk/actions/setup@master
- name: Snyk Container Monitor
Expand Down

0 comments on commit fb82322

Please sign in to comment.