mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-22 07:45:49 +00:00
new jf repo
This commit is contained in:
parent
04a00a369f
commit
4ead845cc2
1 changed files with 1 additions and 13 deletions
14
.github/workflows/maven-build.yml
vendored
14
.github/workflows/maven-build.yml
vendored
|
@ -1,6 +1,3 @@
|
||||||
# This workflow will build a Java project with Maven, and cache/restore any dependencies to improve the workflow execution time
|
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
|
|
||||||
|
|
||||||
name: JFrog - Home Assignment
|
name: JFrog - Home Assignment
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
@ -28,7 +25,6 @@ jobs:
|
||||||
java-version: ${{matrix.java}}
|
java-version: ${{matrix.java}}
|
||||||
distribution: 'corretto'
|
distribution: 'corretto'
|
||||||
cache: maven
|
cache: maven
|
||||||
|
|
||||||
- name: Setup JFrog CLI
|
- name: Setup JFrog CLI
|
||||||
uses: jfrog/setup-jfrog-cli@v3
|
uses: jfrog/setup-jfrog-cli@v3
|
||||||
env:
|
env:
|
||||||
|
@ -53,21 +49,13 @@ jobs:
|
||||||
name: sca_report
|
name: sca_report
|
||||||
path: ${{ env.SCA_REPORT_FILE }}
|
path: ${{ env.SCA_REPORT_FILE }}
|
||||||
|
|
||||||
- name: Publish Build info With JFrog CLI
|
- name: Bonus part Publish the image to JFrog Artifactory in your pipeline (using the SaaS trial)
|
||||||
env:
|
env:
|
||||||
# Generated and maintained by GitHub
|
# Generated and maintained by GitHub
|
||||||
JFROG_CLI_BUILD_NAME: spring-petclinic
|
JFROG_CLI_BUILD_NAME: spring-petclinic
|
||||||
# JFrog organization secret
|
# JFrog organization secret
|
||||||
JFROG_CLI_BUILD_NUMBER : ${{ github.run_number }}
|
JFROG_CLI_BUILD_NUMBER : ${{ github.run_number }}
|
||||||
run: |
|
run: |
|
||||||
# Bonus part: Publish the image to JFrog Artifactory in your pipeline (using the SaaS trial)
|
|
||||||
jf docker push ${{ env.IMAGE_NAME }}
|
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