update image name

This commit is contained in:
Dan Alima 2023-12-31 14:42:47 +02:00
parent 6c98b89be7
commit d21a8c4541

View file

@ -9,7 +9,7 @@ on:
jobs: jobs:
build: build:
env: env:
IMAGE_NAME: danvid.jfrog.io/spring-petclinic-docker/jfrog-docker-example-image:${{ github.sha }} IMAGE_NAME: danvid.jfrog.io/spring-petclinic-docker/spring-petclinic:${{ github.sha }}
SCA_REPORT_FILE: jfrog_sca_report.json SCA_REPORT_FILE: jfrog_sca_report.json
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -35,7 +35,6 @@ jobs:
run: ./mvnw -B package -D skipTests run: ./mvnw -B package -D skipTests
- name: Run the tests - name: Run the tests
run: ./mvnw test run: ./mvnw test
- name: Package the project as a runnable Docker image - name: Package the project as a runnable Docker image
run: | run: |
jf docker build -t ${{ env.IMAGE_NAME }} . jf docker build -t ${{ env.IMAGE_NAME }} .
@ -43,7 +42,6 @@ jobs:
- name: Scan the project with your preferred SCA tool - name: Scan the project with your preferred SCA tool
run: | run: |
jf docker scan --format json ${{ env.IMAGE_NAME }} > ${{ env.SCA_REPORT_FILE }} jf docker scan --format json ${{ env.IMAGE_NAME }} > ${{ env.SCA_REPORT_FILE }}
- uses: actions/upload-artifact@v4 - uses: actions/upload-artifact@v4
with: with:
name: sca_report name: sca_report