Skip to content

Commit

Permalink
[CI] Update jfrog cli to v3 (#499)
Browse files Browse the repository at this point in the history
Update setup-jfrog-cli to use `JF_ENV_SPRING` instead of `JF_ARTIFACTORY_SPRING`
Added `JF_URL`
Added reference to `${{ vars.JF_SERVER_ID }}` in place of `repo.spring.io`
  • Loading branch information
corneil authored Nov 20, 2024
1 parent c2e1f47 commit 83aebd8
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 15 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-snapshot-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
distribution: 'liberica'
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_URL: 'https://repo.spring.io'
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}

# cache maven .m2
- uses: actions/cache@v3
Expand All @@ -33,8 +34,8 @@ jobs:
- name: Configure JFrog Cli
run: |
jfrog rt mvnc --use-wrapper \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--server-id-resolve=${{ vars.JF_SERVER_ID }} \
--server-id-deploy=${{ vars.JF_SERVER_ID }} \
--repo-resolve-releases=libs-milestone \
--repo-resolve-snapshots=libs-snapshot \
--repo-deploy-releases=libs-release-local \
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,14 @@ jobs:
# jfrog cli
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_URL: 'https://repo.spring.io'
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
# setup frog cli
- name: Configure JFrog Cli
run: |
jfrog rt mvnc --use-wrapper \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--server-id-resolve=${{ vars.JF_SERVER_ID }} \
--server-id-deploy=${{ vars.JF_SERVER_ID }} \
--repo-resolve-releases=libs-milestone \
--repo-resolve-snapshots=libs-snapshot \
--repo-deploy-releases=libs-release-local \
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/milestone-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
distribution: 'liberica'
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_URL: 'https://repo.spring.io'
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- uses: actions/cache@v3
with:
path: ~/.m2/repository
Expand All @@ -31,8 +32,8 @@ jobs:
- name: Configure JFrog Cli
run: |
jfrog rt mvnc --use-wrapper \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--server-id-resolve=${{ vars.JF_SERVER_ID }} \
--server-id-deploy=${{ vars.JF_SERVER_ID }} \
--repo-resolve-releases=libs-milestone \
--repo-resolve-snapshots=libs-snapshot \
--repo-deploy-releases=libs-milestone-local \
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/next-dev-version-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
distribution: 'liberica'
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_URL: 'https://repo.spring.io'
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}

# cache maven .m2
- uses: actions/cache@v3
Expand All @@ -33,8 +34,8 @@ jobs:
- name: Configure JFrog Cli
run: |
jfrog rt mvnc --use-wrapper \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--server-id-resolve=${{ vars.JF_SERVER_ID }} \
--server-id-deploy=${{ vars.JF_SERVER_ID }} \
--repo-resolve-releases=libs-milestone \
--repo-resolve-snapshots=libs-snapshot \
--repo-deploy-releases=libs-release-local \
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/release-worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
distribution: 'liberica'
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
JF_URL: 'https://repo.spring.io'
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- uses: actions/cache@v3
with:
path: ~/.m2/repository
Expand All @@ -31,8 +32,8 @@ jobs:
- name: Configure JFrog Cli
run: |
jfrog rt mvnc --use-wrapper \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
--server-id-resolve=${{ vars.JF_SERVER_ID }} \
--server-id-deploy=${{ vars.JF_SERVER_ID }} \
--repo-resolve-releases=libs-release-staging \
--repo-resolve-snapshots=libs-snapshot \
--repo-deploy-releases=libs-staging-local \
Expand Down

0 comments on commit 83aebd8

Please sign in to comment.