Browse Source

Harmonize GitHub Actions settings

Closes gh-41463
pull/42868/head
Stéphane Nicoll 1 year ago
parent
commit
f4b55a6f28
  1. 9
      .github/actions/build/action.yml
  2. 2
      .github/workflows/build-and-deploy-snapshot.yml
  3. 3
      .github/workflows/ci.yml
  4. 10
      .github/workflows/release.yml
  5. 2
      .github/workflows/run-system-tests.yml

9
.github/actions/build/action.yml

@ -5,13 +5,17 @@ inputs:
required: false required: false
default: '17' default: '17'
description: 'The Java version to compile and test with' description: 'The Java version to compile and test with'
java-distribution:
required: false
default: 'liberica'
description: 'The Java distribution to use for the build'
java-toolchain: java-toolchain:
required: false required: false
default: false default: 'false'
description: 'Whether a Java toolchain should be used' description: 'Whether a Java toolchain should be used'
publish: publish:
required: false required: false
default: false default: 'false'
description: 'Whether to publish artifacts ready for deployment to Artifactory' description: 'Whether to publish artifacts ready for deployment to Artifactory'
develocity-access-key: develocity-access-key:
required: false required: false
@ -31,6 +35,7 @@ runs:
with: with:
develocity-access-key: ${{ inputs.develocity-access-key }} develocity-access-key: ${{ inputs.develocity-access-key }}
java-version: ${{ inputs.java-version }} java-version: ${{ inputs.java-version }}
java-distribution: ${{ inputs.java-distribution }}
java-toolchain: ${{ inputs.java-toolchain }} java-toolchain: ${{ inputs.java-toolchain }}
- name: Build - name: Build
id: build id: build

2
.github/workflows/build-and-deploy-snapshot.yml

@ -25,7 +25,7 @@ jobs:
uri: 'https://repo.spring.io' uri: 'https://repo.spring.io'
username: ${{ secrets.ARTIFACTORY_USERNAME }} username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }} password: ${{ secrets.ARTIFACTORY_PASSWORD }}
build-name: ${{ format('spring-boot-{0}', github.ref_name)}} build-name: 'spring-boot-3.2.x'
repository: 'libs-snapshot-local' repository: 'libs-snapshot-local'
folder: 'deployment-repository' folder: 'deployment-repository'
signing-key: ${{ secrets.GPG_PRIVATE_KEY }} signing-key: ${{ secrets.GPG_PRIVATE_KEY }}

3
.github/workflows/ci.yml

@ -2,7 +2,7 @@ name: CI
on: on:
push: push:
branches: branches:
- 3.2.x - '3.2.x'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
jobs: jobs:
@ -43,6 +43,7 @@ jobs:
uses: ./.github/actions/build uses: ./.github/actions/build
with: with:
java-version: ${{ matrix.java.version }} java-version: ${{ matrix.java.version }}
java-distribution: ${{ matrix.java.distribution || 'liberica' }}
java-toolchain: ${{ matrix.java.toolchain }} java-toolchain: ${{ matrix.java.toolchain }}
develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }} develocity-access-key: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
- name: Send Notification - name: Send Notification

10
.github/workflows/release.yml

@ -7,9 +7,9 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
jobs: jobs:
build-and-stage-release: build-and-stage-release:
if: ${{ github.repository == 'spring-projects/spring-boot' }}
name: Build and Stage Release name: Build and Stage Release
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: ${{ github.repository == 'spring-projects/spring-boot' }}
steps: steps:
- name: Check Out Code - name: Check Out Code
uses: actions/checkout@v4 uses: actions/checkout@v4
@ -22,14 +22,14 @@ jobs:
- name: Stage Release - name: Stage Release
uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1 uses: spring-io/artifactory-deploy-action@26bbe925a75f4f863e1e529e85be2d0093cac116 # v0.0.1
with: with:
build-name: ${{ format('spring-boot-{0}', steps.build-and-publish.outputs.version)}} uri: 'https://repo.spring.io'
folder: 'deployment-repository' username: ${{ secrets.ARTIFACTORY_USERNAME }}
password: ${{ secrets.ARTIFACTORY_PASSWORD }} password: ${{ secrets.ARTIFACTORY_PASSWORD }}
build-name: ${{ format('spring-boot-{0}', steps.build-and-publish.outputs.version)}}
repository: 'libs-staging-local' repository: 'libs-staging-local'
folder: 'deployment-repository'
signing-key: ${{ secrets.GPG_PRIVATE_KEY }} signing-key: ${{ secrets.GPG_PRIVATE_KEY }}
signing-passphrase: ${{ secrets.GPG_PASSPHRASE }} signing-passphrase: ${{ secrets.GPG_PASSPHRASE }}
uri: 'https://repo.spring.io'
username: ${{ secrets.ARTIFACTORY_USERNAME }}
artifact-properties: | artifact-properties: |
/**/spring-boot-docs-*.zip::zip.type=docs,zip.deployed=false /**/spring-boot-docs-*.zip::zip.type=docs,zip.deployed=false
outputs: outputs:

2
.github/workflows/run-system-tests.yml

@ -2,7 +2,7 @@ name: Run System Tests
on: on:
push: push:
branches: branches:
- 3.2.x - '3.2.x'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.ref }}
jobs: jobs:

Loading…
Cancel
Save