mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
fix image name
This commit is contained in:
parent
f0066a16c6
commit
8eb7236448
1 changed files with 4 additions and 5 deletions
9
.github/workflows/maven-build.yml
vendored
9
.github/workflows/maven-build.yml
vendored
|
@ -9,8 +9,7 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
env:
|
env:
|
||||||
IMAGE_NAME: danvid.jfrog.io/spring-petclinic-docker/spring-petclinic:${{ github.sha }}
|
IMAGE_NAME: danvid.jfrog.io/spring-petclinic-docker/spring-petclinic
|
||||||
IMAGE_NAME_LATEST: danvid.jfrog.io/spring-petclinic-docker/spring-petclinic:latest
|
|
||||||
SCA_REPORT_FILE: jfrog_sca_report.json
|
SCA_REPORT_FILE: jfrog_sca_report.json
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
@ -38,11 +37,11 @@ jobs:
|
||||||
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 }} -t ${{ env.IMAGE_NAME_LATEST }} .
|
jf docker build -t ${{ env.IMAGE_NAME }}:${{ github.sha }} -t ${{ env.IMAGE_NAME }}:latest .
|
||||||
|
|
||||||
- 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 }}:${{ github.sha }} > ${{ env.SCA_REPORT_FILE }}
|
||||||
- uses: actions/upload-artifact@v4
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: sca_report
|
name: sca_report
|
||||||
|
@ -56,7 +55,7 @@ jobs:
|
||||||
JFROG_CLI_BUILD_NUMBER : ${{ github.run_number }}
|
JFROG_CLI_BUILD_NUMBER : ${{ github.run_number }}
|
||||||
run: |
|
run: |
|
||||||
# Push Docker Image to Artifactory
|
# Push Docker Image to Artifactory
|
||||||
jf docker push ${{ env.IMAGE_NAME }}
|
jf docker push ${{ env.IMAGE_NAME }} --all-tags
|
||||||
# Export the build name and build nuber
|
# Export the build name and build nuber
|
||||||
# Collect environment variables for the build
|
# Collect environment variables for the build
|
||||||
jf rt build-collect-env
|
jf rt build-collect-env
|
||||||
|
|
Loading…
Reference in a new issue