mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-21 23:35:50 +00:00
fix global env
This commit is contained in:
parent
98d53bd92f
commit
04a00a369f
1 changed files with 19 additions and 3 deletions
22
.github/workflows/maven-build.yml
vendored
22
.github/workflows/maven-build.yml
vendored
|
@ -42,16 +42,32 @@ jobs:
|
|||
|
||||
- name: Package the project as a runnable Docker image
|
||||
run: |
|
||||
jf docker build -t $IMAGE_NAME .
|
||||
jf docker build -t ${{ env.IMAGE_NAME }} .
|
||||
|
||||
- name: Scan the project with your preferred SCA tool
|
||||
run: |
|
||||
jf docker scan --format json danvid.jfrog.io/assignment-docker/spring-petclinic:${{ github.sha }} > $SCA_REPORT_FILE
|
||||
jf docker scan --format json danvid.jfrog.io/assignment-docker/spring-petclinic:${{ github.sha }} > ${{ env.SCA_REPORT_FILE }}
|
||||
|
||||
- uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: sca_report
|
||||
path: $SCA_REPORT_FILE
|
||||
path: ${{ env.SCA_REPORT_FILE }}
|
||||
|
||||
- name: Publish Build info With JFrog CLI
|
||||
env:
|
||||
# Generated and maintained by GitHub
|
||||
JFROG_CLI_BUILD_NAME: spring-petclinic
|
||||
# JFrog organization secret
|
||||
JFROG_CLI_BUILD_NUMBER : ${{ github.run_number }}
|
||||
run: |
|
||||
# Bonus part: Publish the image to JFrog Artifactory in your pipeline (using the SaaS trial)
|
||||
jf docker push ${{ env.IMAGE_NAME }}
|
||||
# Export the build name and build nuber
|
||||
# Collect environment variables for the build
|
||||
jf rt build-collect-env
|
||||
# Collect VCS details from git and add them to the build
|
||||
jf rt build-add-git
|
||||
# Publish build info
|
||||
jf rt build-publish
|
||||
|
||||
|
Loading…
Reference in a new issue