chore: update to Quarkus 3.2.9.Final #98
Workflow file for this run
This file contains 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
name: Quarkiverse Release | |
on: | |
pull_request: | |
types: [ closed ] | |
paths: | |
- '.github/project.yml' | |
jobs: | |
release: | |
runs-on: ubuntu-latest | |
name: release | |
if: ${{github.event.pull_request.merged == true}} | |
steps: | |
- uses: radcortez/project-metadata-action@main | |
name: Retrieve project metadata | |
id: metadata | |
with: | |
github-token: ${{secrets.GITHUB_TOKEN}} | |
metadata-file-path: '.github/project.yml' | |
- uses: actions/checkout@v3 | |
- name: Retrieve Quarkus version | |
id: quarkus-version | |
run: echo "quarkus_version=$(mvn help:evaluate -Dexpression=quarkus.version -q -DforceStdout)" >> $GITHUB_OUTPUT | |
- name: Import GPG key | |
id: import_gpg | |
uses: crazy-max/ghaction-import-gpg@v5 | |
with: | |
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} | |
passphrase: ${{ secrets.GPG_PASSPHRASE }} | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'temurin' | |
java-version: 11 | |
cache: 'maven' | |
server-id: ossrh | |
server-username: MAVEN_USERNAME | |
server-password: MAVEN_PASSWORD | |
- name: Configure Git author | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- name: Maven release ${{steps.metadata.outputs.current-version}} | |
run: | | |
git checkout -b release | |
mvn -B release:prepare -Prelease -Darguments="-DperformRelease -Dno-samples -DskipTests" -DreleaseVersion=${{steps.metadata.outputs.current-version}} -DdevelopmentVersion=${{steps.metadata.outputs.next-version}} | |
git checkout ${{github.base_ref}} | |
git rebase release | |
mvn -B release:perform -Darguments="-DperformRelease -Dno-samples -DskipTests" -DperformRelease -Prelease | |
env: | |
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
MAVEN_PASSWORD: ${{ secrets.OSSRH_TOKEN }} | |
- name: Push tags | |
run: git push && git push --tags | |
- uses: actions/checkout@v3 | |
with: | |
repository: quarkusio/quarkus-platform | |
ref: 3.2 | |
path: quarkus-platform | |
- name: Update QOSDK version to ${{steps.metadata.outputs.current-version}} in quarkus-platform | |
run: | | |
cd quarkus-platform | |
mvn -B versions:set-property -Dproperty=quarkus-operator-sdk.version -DnewVersion=${{steps.metadata.outputs.current-version}} | |
./mvnw -Dsync | |
- name: Create quarkus-platform pull request | |
uses: peter-evans/create-pull-request@v5 | |
id: qp-pr | |
with: | |
path: quarkus-platform | |
title: "Update QOSDK to ${{steps.metadata.outputs.current-version}}" | |
commit-message: "Update QOSDK to ${{steps.metadata.outputs.current-version}}" | |
committer: metacosm <[email protected]> | |
author: metacosm <[email protected]> | |
branch: qosdk-release-${{steps.metadata.outputs.current-version}} | |
token: ${{ secrets.QOSDK_BOT_TOKEN }} | |
push-to-fork: qosdk-bot/quarkus-platform | |
delete-branch: true | |
- name: Check quarkus-platform PR | |
if: ${{ steps.qp-pr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.qp-pr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.qp-pr.outputs.pull-request-url }}" | |
- uses: actions/checkout@v3 | |
with: | |
repository: operator-framework/java-operator-plugins | |
path: sdk-plugins | |
- name: Update QOSDK version to ${{steps.metadata.outputs.current-version}} in java-operator-plugins | |
run: | | |
cd sdk-plugins | |
sed -i -e 's|<quarkus-sdk.version>.*</quarkus-sdk.version>|<quarkus-sdk.version>${{steps.metadata.outputs.current-version}}</quarkus-sdk.version>|' $(pwd)/pkg/quarkus/v1beta/scaffolds/internal/templates/pomxml.go | |
sed -i -e 's|<quarkus-sdk.version>.*</quarkus-sdk.version>|<quarkus-sdk.version>${{steps.metadata.outputs.current-version}}</quarkus-sdk.version>|' $(pwd)/testdata/quarkus/memcached-quarkus-operator/pom.xml | |
echo "Using Quarkus ${{ steps.quarkus-version.outputs.quarkus_version }}" | |
mvn versions:set-property -Dproperty=quarkus.version -DnewVersion=${{steps.quarkus-version.outputs.quarkus_version}} -f ./testdata/quarkus/memcached-quarkus-operator/pom.xml versions:commit | |
sed -i -e 's|<quarkus.version>.*</quarkus.version>|<quarkus.version>${{steps.quarkus-version.outputs.quarkus_version}}</quarkus.version>|' $(pwd)/pkg/quarkus/v1beta/scaffolds/internal/templates/pomxml.go | |
- name: Create java-operator-plugins pull request | |
uses: peter-evans/create-pull-request@v5 | |
id: jop-pr | |
with: | |
path: sdk-plugins | |
title: "feat: update QOSDK to ${{steps.metadata.outputs.current-version}}" | |
commit-message: "feat: update QOSDK to ${{steps.metadata.outputs.current-version}}" | |
committer: metacosm <[email protected]> | |
author: metacosm <[email protected]> | |
branch: qosdk-release-${{steps.metadata.outputs.current-version}} | |
token: ${{ secrets.QOSDK_BOT_TOKEN }} | |
push-to-fork: qosdk-bot/java-operator-plugins | |
delete-branch: true | |
- name: Check java-operator-plugins PR | |
if: ${{ steps.jop-pr.outputs.pull-request-number }} | |
run: | | |
echo "Pull Request Number - ${{ steps.jop-pr.outputs.pull-request-number }}" | |
echo "Pull Request URL - ${{ steps.jop-pr.outputs.pull-request-url }}" |