mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2026-02-05 13:51:12 +00:00
Update main.yml with bp command to RT
Signed-off-by: nirpel-sys <nirpel@jfrog.com>
This commit is contained in:
parent
b76ce3f612
commit
f50fa2fd99
1 changed files with 17 additions and 2 deletions
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
|
|
@ -19,5 +19,20 @@ jobs:
|
|||
oidc-provider-name: github-oidc-provider # Must match name in JFrog
|
||||
oidc-audience: jfrog-github # Must match audience in JFrog
|
||||
|
||||
- name: Run JFrog Command
|
||||
run: jf rt ping # This now works without any manual JF_ACCESS_TOKEN
|
||||
# 1. Configure the build tool (Example for a Node.js project)
|
||||
- name: Configure NPM
|
||||
run: |
|
||||
jf npm-config --repo-resolve=npm-virtual --repo-deploy=npm-local
|
||||
|
||||
# 2. Run the build and collect "Build-Info"
|
||||
# The 'jf' wrapper automatically records dependencies and environment variables
|
||||
- name: Build and Collect Info
|
||||
run: |
|
||||
jf npm install --build-name=petclinic-ci --build-number=${{ github.run_number }}
|
||||
jf npm publish --build-name=petclinic-ci --build-number=${{ github.run_number }}
|
||||
|
||||
# 3. Publish the Build-Info to Artifactory
|
||||
# This is the command that makes the build appear in the "Builds" tab
|
||||
- name: Publish Build Info
|
||||
run: |
|
||||
jf rt bp petclinic-ci ${{ github.run_number }}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue