Skip to content

chore: release 6.3.3 #90

chore: release 6.3.3

chore: release 6.3.3 #90

Workflow file for this run

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: 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 "action@github.com"
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
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
- 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/v1alpha/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
- 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 <metacosm@users.noreply.github.com>
author: metacosm <metacosm@users.noreply.github.com>
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 }}"
- 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 <metacosm@users.noreply.github.com>
author: metacosm <metacosm@users.noreply.github.com>
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 }}"