Skip to content

Commit

Permalink
Update docker-build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
sakan811 authored Sep 24, 2024
1 parent ed7dfd2 commit 91321eb
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/docker-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,16 @@ jobs:
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Run Trivy vulnerability scanner
- name: Run Trivy vulnerability scanner for Backend
uses: aquasecurity/trivy-action@0.20.0
with:
image-ref: 'docker.io/my-organization/my-app:${{ github.sha }}'
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/find-stay-place-backend:latest'
format: 'table'

- name: Run Trivy vulnerability scanner for Frontend
uses: aquasecurity/trivy-action@0.20.0
with:
image-ref: '${{ vars.DOCKERHUB_USERNAME }}/find-stay-place-frontend:latest'
format: 'table'

- name: Build and push backend
Expand Down

0 comments on commit 91321eb

Please sign in to comment.