Skip to content

Commit

Permalink
Update maven.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jaiswaladi246 authored Mar 28, 2024
1 parent 5d883a2 commit efc4c63
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ jobs:
- name: Build with Maven
run: mvn package

- name: Run Shell Commands
FS_Scan:

runs-on: self-hosted
steps:
- name: Trivy FS Scan
run: |
trivy fs --format table -o trivy.report .
trivy fs --format table -o trivy-fs-report.html .
- name: SonarQube Scan
uses: sonarsource/sonarqube-scan-action@master
Expand Down Expand Up @@ -52,7 +56,11 @@ jobs:

- name: Build Docker Image
run: |
docker build -t adijaiswal/board:latest .
docker build -t adijaiswal/boardgame:latest .
- name: Trivy Image Scan
run: |
trivy image --format table -o trivy-image-report.html adijaiswal/board:latest
- name: Login to Docker Hub
uses: docker/login-action@v3
Expand All @@ -62,6 +70,6 @@ jobs:

- name: Push Docker Image
run: |
docker push adijaiswal/board:latest
docker push adijaiswal/boardgame:latest

0 comments on commit efc4c63

Please sign in to comment.