Skip to content

Commit

Permalink
Update push-to-docker-hub.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
min2ha authored Dec 25, 2023
1 parent 77943b5 commit b574208
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions .github/workflows/push-to-docker-hub.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:

image_scan:
name: Build Image and Run Image Scan
needs: security1
runs-on: ubuntu-latest

steps:
Expand Down Expand Up @@ -50,18 +51,9 @@ jobs:
command: quickview,cves
only-severities: critical,high

security2:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Run Snyk to check for vulnerabilities
uses: snyk/actions/scala@master
env:
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}

push_to_docker_hub:
name: Push Docker image to Docker Hub
needs: [image_scan, security1, security2]
needs: [image_scan]
# This uses the default metadata-action configuration, see https://github.com/docker/metadata-action
# Pushes to master should build `ukwa/w3act:master`, tags should build `ukwa/w3act:TAG` and update `ukwa/w3act:latest` to refer to TAG.
runs-on: ubuntu-latest
Expand Down

0 comments on commit b574208

Please sign in to comment.