mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-15 01:07:30 +08:00
Use short-lived access token to authenticate with Develocity
Closes gh-41120
This commit is contained in:
parent
2bbeb7e78c
commit
270597e577
4
.github/actions/build/action.yml
vendored
4
.github/actions/build/action.yml
vendored
@ -35,15 +35,11 @@ runs:
|
|||||||
id: build
|
id: build
|
||||||
if: ${{ inputs.publish == 'false' }}
|
if: ${{ inputs.publish == 'false' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }}
|
|
||||||
run: ./gradlew build
|
run: ./gradlew build
|
||||||
- name: Publish
|
- name: Publish
|
||||||
id: publish
|
id: publish
|
||||||
if: ${{ inputs.publish == 'true' }}
|
if: ${{ inputs.publish == 'true' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
|
||||||
DEVELOCITY_ACCESS_KEY: ${{ inputs.develocity-access-key }}
|
|
||||||
run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
|
run: ./gradlew -PdeploymentRepository=$(pwd)/deployment-repository ${{ !startsWith(github.event.head_commit.message, 'Next development version') && 'build' || '' }} publishAllPublicationsToDeploymentRepository
|
||||||
- name: Read Version From gradle.properties
|
- name: Read Version From gradle.properties
|
||||||
id: read-version
|
id: read-version
|
||||||
|
@ -9,6 +9,9 @@ inputs:
|
|||||||
required: false
|
required: false
|
||||||
default: false
|
default: false
|
||||||
description: 'Whether a Java toolchain should be used'
|
description: 'Whether a Java toolchain should be used'
|
||||||
|
develocity-access-key:
|
||||||
|
required: false
|
||||||
|
description: 'The access key for authentication with ge.spring.io'
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
steps:
|
||||||
@ -28,6 +31,7 @@ runs:
|
|||||||
uses: gradle/actions/setup-gradle@31ae3562f68c96d481c31bc1a8a55cc1be162f83 # v3.4.1
|
uses: gradle/actions/setup-gradle@31ae3562f68c96d481c31bc1a8a55cc1be162f83 # v3.4.1
|
||||||
with:
|
with:
|
||||||
cache-read-only: false
|
cache-read-only: false
|
||||||
|
develocity-access-key: ${{ inputs.develocity-access-key }}
|
||||||
- name: Configure Gradle Properties
|
- name: Configure Gradle Properties
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
9
.github/workflows/run-system-tests.yml
vendored
9
.github/workflows/run-system-tests.yml
vendored
@ -23,18 +23,13 @@ jobs:
|
|||||||
- name: Prepare Gradle Build
|
- name: Prepare Gradle Build
|
||||||
uses: ./.github/actions/prepare-gradle-build
|
uses: ./.github/actions/prepare-gradle-build
|
||||||
with:
|
with:
|
||||||
|
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
|
||||||
java-version: ${{ matrix.java.version }}
|
java-version: ${{ matrix.java.version }}
|
||||||
java-toolchain: ${{ matrix.java.toolchain }}
|
java-toolchain: ${{ matrix.java.toolchain }}
|
||||||
- name: Run System Tests
|
- name: Run System Tests
|
||||||
id: run-system-tests
|
id: run-system-tests
|
||||||
shell: bash
|
shell: bash
|
||||||
env:
|
run: ./gradlew systemTest
|
||||||
GRADLE_ENTERPRISE_URL: 'https://ge.spring.io'
|
|
||||||
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
|
|
||||||
GRADLE_ENTERPRISE_CACHE_USERNAME: ${{ secrets.GRADLE_ENTERPRISE_CACHE_USER }}
|
|
||||||
GRADLE_ENTERPRISE_CACHE_PASSWORD: ${{ secrets.GRADLE_ENTERPRISE_CACHE_PASSWORD }}
|
|
||||||
run: |
|
|
||||||
./gradlew systemTest
|
|
||||||
- name: Send Notification
|
- name: Send Notification
|
||||||
uses: ./.github/actions/send-notification
|
uses: ./.github/actions/send-notification
|
||||||
if: always()
|
if: always()
|
||||||
|
Loading…
Reference in New Issue
Block a user