mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-23 08:15:49 +00:00
added container image scan
This commit is contained in:
parent
fd063f4818
commit
7b928ec15e
1 changed files with 2 additions and 5 deletions
7
.github/workflows/ci-learning.yml
vendored
7
.github/workflows/ci-learning.yml
vendored
|
@ -110,18 +110,15 @@ jobs:
|
||||||
JF_URL: ${{ secrets.JF_URL }}
|
JF_URL: ${{ secrets.JF_URL }}
|
||||||
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
|
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }}
|
||||||
|
|
||||||
- name: Retag image with jfrog repo
|
|
||||||
run: docker tag spring-petclinic:3.1.0-SNAPSHOT my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
|
||||||
|
|
||||||
- name: Build Tag and push Docker Image
|
- name: Build Tag and push Docker Image
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
IMAGE_NAME: my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
run:
|
run:
|
||||||
jf docker push $IMAGE_NAME
|
jf docker push $IMAGE_NAME
|
||||||
|
|
||||||
- name: Scan for vulnerabilities
|
- name: Scan Image for vulnerabilities
|
||||||
run:
|
run:
|
||||||
jf scan *
|
jf docker scan my0373.jfrog.io/my0373-docker/spring-petclinic:3.1.0-SNAPSHOT
|
||||||
|
|
||||||
- name: Publish Build info With JFrog CLI
|
- name: Publish Build info With JFrog CLI
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Reference in a new issue