new jf repo

This commit is contained in:
Dan Alima 2023-12-31 14:12:18 +02:00
parent 04a00a369f
commit 4ead845cc2

View file

@ -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
on:
@ -28,7 +25,6 @@ jobs:
java-version: ${{matrix.java}}
distribution: 'corretto'
cache: maven
- name: Setup JFrog CLI
uses: jfrog/setup-jfrog-cli@v3
env:
@ -53,21 +49,13 @@ jobs:
name: sca_report
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:
# 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