Skip to content

Commit

Permalink
Try to use latest JFrog CLI
Browse files Browse the repository at this point in the history
According to the recommendations from jfrog/jfrog-cli#2364
  • Loading branch information
artembilan committed Jan 2, 2024
1 parent 7cbef70 commit 4b90210
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/verify-staged-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,6 @@ on:
required: true
type: string

env:
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}

jobs:
verify-staged-with-samples:
runs-on: ubuntu-latest
Expand All @@ -26,24 +19,31 @@ jobs:
repository: spring-projects/spring-integration
show-progress: false

- name: Set up Gradle
uses: spring-io/spring-gradle-build-action@v2
- name: Set up JDK
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
cache: 'gradle'

- uses: jfrog/setup-jfrog-cli@v3
with:
version: 2.52.3
env:
JF_ENV_SPRING: ${{ secrets.JF_ARTIFACTORY_SPRING }}

- name: Configure JFrog Cli
run: jf gradlec --repo-resolve libs-staging-local

- name: Prepare Spring Integration project against Staging
- name: Verify Spring Integration Kafka against staged release
run: |
printf "allprojects {
repositories {
maven {
url 'https://repo.spring.io/libs-staging-local'
credentials {
username = '$ARTIFACTORY_USERNAME'
password = '$ARTIFACTORY_PASSWORD'
}
}
}
}" > staging-repo-init.gradle
sed -i "1,/springKafkaVersion.*/s/springKafkaVersion.*/springKafkaVersion='${{ inputs.releaseVersion }}'/" build.gradle
jf gradle :spring-integration-kafka:check
- name: Verify Spring Integration Samples against staged release
run: gradle :spring-integration-kafka:check --init-script staging-repo-init.gradle
- name: Capture Test Results
if: failure()
uses: actions/upload-artifact@v3
with:
name: test-results
path: '**/target/surefire-reports/**/*.*'
retention-days: 1

0 comments on commit 4b90210

Please sign in to comment.