Skip to content

Commit

Permalink
[CI] Update apps plugin snapshot workflow w/ proper Jfrog server id
Browse files Browse the repository at this point in the history
  • Loading branch information
onobc committed Dec 10, 2024
1 parent 4376848 commit 5cce183
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/apps-plugin-snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,31 +22,26 @@ jobs:
run:
working-directory: spring-cloud-dataflow-apps-plugin
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-java@v3
with:
java-version: 17
distribution: temurin
- uses: jvalkeal/setup-maven@v1
with:
maven-version: 3.8.8
maven-mirror: 'https://dlcdn.apache.org/maven/maven-3/'
- uses: jfrog/setup-jfrog-cli@v3
with:
version: 1.46.4
env:
JF_ARTIFACTORY_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2-
- uses: jfrog/setup-jfrog-cli@v3
env:
JF_URL: 'https://repo.spring.io'
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}
- name: Configure JFrog Cli
run: |
jfrog rt mvnc \
--server-id-resolve=repo.spring.io \
--server-id-deploy=repo.spring.io \
jfrog mvnc --use-wrapper \
--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 All @@ -55,8 +50,7 @@ jobs:
echo JFROG_CLI_BUILD_NUMBER=$GITHUB_RUN_NUMBER >> $GITHUB_ENV
- name: Build and Publish
run: |
jfrog rt build-clean
jfrog rt mvn -gs settings.xml -B install
jfrog mvn -U -gs settings.xml clean install
jfrog rt build-publish
- name: Capture Test Results
if: ${{ always() }}
Expand Down

0 comments on commit 5cce183

Please sign in to comment.