Repository navigation
Align with commercial build support #1537
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
artembilan
merged 3 commits into
spring-projects:main
from
sobychacko:align-commercial-build-support
Aug 6, 2026
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
| name: Build Release | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Build Release | ||
| shell: bash | ||
| run: | | ||
| echo Build and Publish | ||
|
|
||
| printf "allprojects { | ||
| afterEvaluate { | ||
| pluginManager.withPlugin('maven-publish') { | ||
| publishing { | ||
| repositories { | ||
| maven { | ||
| url = System.getenv('GITHUB_WORKSPACE') + '/deployment-repository' | ||
| name = 'deployment' | ||
| } | ||
| } | ||
| } | ||
| } | ||
|
|
||
| repositories { | ||
| maven { | ||
| name = 'Release Train' | ||
| url = System.getenv('RELEASE_TRAIN_MAVEN_REPOSITORY_URL') | ||
| credentials { | ||
| username = System.getenv('RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME') | ||
| password = System.getenv('RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD') | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }" > repositories-init.gradle | ||
|
|
||
| ./gradlew build publishAllPublicationsToDeploymentRepository --init-script repositories-init.gradle -x test -x integrationTest |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| artifactory: | ||
| artifacts: | ||
| - pattern: "/**/spring-*-docs.zip" | ||
| properties: | ||
| zip.deployed: "false" | ||
| zip.name: "spring-pulsar" | ||
| zip.type: "docs" | ||
| maven-central: | ||
| excludes: | ||
| - "/**/*.zip" | ||
| - "/**/*.zip.asc" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| name: Test Release | ||
| runs: | ||
| using: composite | ||
| steps: | ||
| - name: Test Release | ||
| shell: bash | ||
| run: | | ||
| printf "allprojects { | ||
| afterEvaluate { | ||
| repositories { | ||
| maven { | ||
| name = 'Release Train' | ||
| url = System.getenv('RELEASE_TRAIN_MAVEN_REPOSITORY_URL') | ||
| credentials { | ||
| username = System.getenv('RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME') | ||
| password = System.getenv('RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD') | ||
| } | ||
| } | ||
| } | ||
| } | ||
| }" > repositories-init.gradle | ||
|
|
||
| ./gradlew check --init-script repositories-init.gradle |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,23 @@ | ||
| workflow: | ||
| generator: | ||
| project: | ||
| java: | ||
| versions: | ||
| primary: 25 | ||
| workflows: | ||
| release-train: | ||
| join: | ||
| watch: false | ||
| ready: | ||
| watch: false | ||
| leave: | ||
| watch: false | ||
| build: | ||
| env: | ||
| ARTIFACTORY_USERNAME: secrets.COMMERCIAL_ARTIFACTORY_USERNAME | ||
| ARTIFACTORY_PASSWORD: secrets.COMMERCIAL_ARTIFACTORY_PASSWORD | ||
| test: | ||
| runs-on: ubuntu22-4-16 | ||
| env: | ||
| ARTIFACTORY_USERNAME: secrets.COMMERCIAL_ARTIFACTORY_USERNAME | ||
| ARTIFACTORY_PASSWORD: secrets.COMMERCIAL_ARTIFACTORY_PASSWORD |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| name: Post-Release | ||
|
|
||
| on: | ||
| push: | ||
| tags: | ||
| - v* | ||
|
|
||
| run-name: Post-release for ${{ github.ref_name }} | ||
|
|
||
| jobs: | ||
| release: | ||
| permissions: | ||
| contents: write | ||
| issues: write | ||
|
|
||
| uses: spring-io/spring-github-workflows/.github/workflows/spring-post-release.yml@main | ||
| with: | ||
| preview: true | ||
| secrets: | ||
| GH_ACTIONS_REPO_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }} | ||
| SPRING_RELEASE_CHAT_WEBHOOK_URL: ${{ secrets.SPRING_RELEASE_GCHAT_WEBHOOK_URL }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,92 @@ | ||
| # This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit. | ||
| # To update it, modify .github/workflow-generator.yml as needed and re-run the generator. | ||
|
|
||
| name: "Release Train – Build" | ||
| run-name: "${{ inputs.callback-ref }} – Build" | ||
| "on": | ||
| workflow_dispatch: | ||
| inputs: | ||
| callback: | ||
| description: "Repository to which a callback should be made upon completion" | ||
| required: true | ||
| type: "string" | ||
| callback-ref: | ||
| description: "Ref in the callback repository to which a callback should be made upon completion" | ||
| required: true | ||
| type: "string" | ||
| release-train-maven-repository-url: | ||
| description: "URL of a Maven repository to be used to resolve artifacts of projects earlier in the train" | ||
| required: true | ||
| type: "string" | ||
| permissions: | ||
| contents: "read" | ||
| concurrency: | ||
| group: "${{ github.workflow }}-${{ github.ref }}" | ||
| jobs: | ||
| build-release: | ||
| name: "Build Release" | ||
| runs-on: "ubuntu22-2-8" | ||
| steps: | ||
| - name: "Prevent Re-runs" | ||
| id: "prevent-re-runs" | ||
| run: |- | ||
| if [ "$GITHUB_RUN_ATTEMPT" -gt 1 ]; then | ||
| echo "Re-runs are prohibited. Use the 'Release Train – Retry' workflow to retry build failures" | ||
| exit 1 | ||
| fi | ||
| - name: "Set up Java" | ||
| id: "set-up-java" | ||
| uses: "actions/setup-java@03ad4de0992f5dab5e18fcb136590ce7c4a0ac95" # v5.6.0 | ||
| with: | ||
| distribution: "liberica" | ||
| java-version: "25" | ||
| - name: "Check Out Code" | ||
| id: "check-out-code" | ||
| uses: "actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0" # v7.0.0 | ||
| - name: "Build Release" | ||
| id: "build-release" | ||
| uses: "./.github/actions/release-train-build" | ||
| env: | ||
| ARTIFACTORY_PASSWORD: "${{ secrets.COMMERCIAL_ARTIFACTORY_PASSWORD }}" | ||
| ARTIFACTORY_USERNAME: "${{ secrets.COMMERCIAL_ARTIFACTORY_USERNAME }}" | ||
| RELEASE_TRAIN_MAVEN_REPOSITORY_PASSWORD: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_PASSWORD }}" | ||
| RELEASE_TRAIN_MAVEN_REPOSITORY_URL: "${{ inputs.release-train-maven-repository-url }}" | ||
| RELEASE_TRAIN_MAVEN_REPOSITORY_USERNAME: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_MAVEN_REPOSITORY_USERNAME }}" | ||
| - name: "Upload Deployment Repository" | ||
| id: "upload-deployment-repository" | ||
| uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7.0.1 | ||
| with: | ||
| name: "deployment-repository" | ||
| path: "deployment-repository/**" | ||
| - name: "Upload Deployment Spec" | ||
| id: "upload-deployment-spec" | ||
| uses: "actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a" # v7.0.1 | ||
| with: | ||
| archive: "false" | ||
| if-no-files-found: "ignore" | ||
| name: "deployment-spec" | ||
| path: ".github/actions/release-train-build/deployment-spec.yml" | ||
| - name: "Save Build System Caches" | ||
| id: "save-build-system-caches" | ||
| uses: "actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9" # v6.1.0 | ||
| with: | ||
| key: "release-train-${{ inputs.callback-ref }}-${{ github.ref_name }}" | ||
| path: |- | ||
| ~/.gradle/caches | ||
| ~/.gradle/wrapper | ||
| - name: "Send Callback" | ||
| id: "send-callback" | ||
| if: "${{ !cancelled() }}" | ||
| env: | ||
| GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}" | ||
| run: |- | ||
| gh workflow run callback \ | ||
| --repo ${{ inputs.callback }} \ | ||
| --ref ${{ inputs.callback-ref }} \ | ||
| --field commit-hash=${{ steps.check-out-code.outputs.commit }} \ | ||
| --field deployment-repository-artifact-identifier=${{ steps.upload-deployment-repository.outputs.artifact-id }} \ | ||
| --field deployment-spec-artifact-identifier=${{ steps.upload-deployment-spec.outputs.artifact-id }} \ | ||
| --field release-branch=${{ github.ref_name }} \ | ||
| --field release-repository=${{ github.repository }} \ | ||
| --field result=${{ job.status == 'success' && 'built' || 'build-failed' }} \ | ||
| --field workflow-run-url=${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,43 @@ | ||
| # This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit. | ||
| # To update it, modify .github/workflow-generator.yml as needed and re-run the generator. | ||
|
|
||
| name: "Release Train – Join" | ||
| run-name: "${{ inputs.release-train }} – Join" | ||
| "on": | ||
| workflow_dispatch: | ||
| inputs: | ||
| deployment-destination: | ||
| description: "Destination to which the release should be deployed" | ||
| options: | ||
| - "Maven Central" | ||
| - "Spring Enterprise" | ||
| required: true | ||
| type: "choice" | ||
| release-train: | ||
| description: "Release train" | ||
| required: true | ||
| type: "string" | ||
| release-train-repository: | ||
| default: "spring-io/release-train" | ||
| description: "Release train repository" | ||
| required: true | ||
| type: "string" | ||
| permissions: | ||
| contents: "none" | ||
| jobs: | ||
| join-release-train: | ||
| name: "Join Release Train" | ||
| runs-on: "ubuntu-latest" | ||
| steps: | ||
| - name: "Join Release Train" | ||
| id: "join-release-train" | ||
| env: | ||
| GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}" | ||
| run: |- | ||
| gh workflow run join \ | ||
| --repo ${{ inputs.release-train-repository }} \ | ||
| --ref ${{ inputs.release-train }} \ | ||
| --field commit-hash=${{ github.sha }} \ | ||
| --field deployment-destination=${{ inputs.deployment-destination == 'Maven Central' && 'maven-central' || 'spring-enterprise' }} \ | ||
| --field release-branch=${{ github.ref_name }} \ | ||
| --field release-repository=${{ github.repository }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # This file was auto-generated by github-actions-workflow-generator 0.0.6. Do not edit. | ||
| # To update it, modify .github/workflow-generator.yml as needed and re-run the generator. | ||
|
|
||
| name: "Release Train – Leave" | ||
| run-name: "${{ inputs.release-train }} – Leave" | ||
| "on": | ||
| workflow_dispatch: | ||
| inputs: | ||
| release-train: | ||
| description: "Release train" | ||
| required: true | ||
| type: "string" | ||
| release-train-repository: | ||
| default: "spring-io/release-train" | ||
| description: "Release train repository" | ||
| required: true | ||
| type: "string" | ||
| permissions: | ||
| contents: "none" | ||
| jobs: | ||
| leave: | ||
| name: "Leave" | ||
| runs-on: "ubuntu-latest" | ||
| steps: | ||
| - name: "Leave" | ||
| id: "leave" | ||
| env: | ||
| GH_TOKEN: "${{ secrets.RELEASE_TRAIN_PARTICIPANT_GITHUB_TOKEN }}" | ||
| run: |- | ||
| gh workflow run leave \ | ||
| --repo ${{ inputs.release-train-repository }} \ | ||
| --ref ${{ inputs.release-train }} \ | ||
| --field release-branch=${{ github.ref_name }} \ | ||
| --field release-repository=${{ github.repository }} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need to double check if the logic in that
spring-post-release.ymlis valid for this project: https://github.com/spring-io/spring-github-workflows/blob/main/.github/workflows/spring-post-release.ymlThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me from what i can see.