mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
adding Docker scan with JFrog CLI
This commit is contained in:
parent
ec2e19f537
commit
97be2fedb1
1 changed files with 11 additions and 1 deletions
12
.github/workflows/maven-build.yml
vendored
12
.github/workflows/maven-build.yml
vendored
|
@ -40,4 +40,14 @@ jobs:
|
|||
- name: Set up JFrog CLI
|
||||
uses: jfrog/setup-jfrog-cli@v3
|
||||
- name: Scan the project with your preferred SCA tool
|
||||
run: jf --version
|
||||
run: jf docker scan docker.io/library/spring-petclinic:3.2.0-SNAPSHOT
|
||||
- name: Login to Docker Hub
|
||||
uses: docker/login-action@v3
|
||||
with:
|
||||
username: ${{ secrets.DOCKERHUB_USERNAME }}
|
||||
password: ${{ secrets.DOCKERHUB_TOKEN }}
|
||||
- name: Build and push
|
||||
uses: docker/build-push-action@v5
|
||||
with:
|
||||
push: true
|
||||
tags: user/app:latest
|
||||
|
|
Loading…
Reference in a new issue