This repository has been archived by the owner on Jul 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This is not to replace the current work, is to avoid the pain suffered over the last releases where things didn't work as good as expected. Manual workflow, triggered manually, to release it. As I said, not perfect, but want to reduce the current friction. Signed-off-by: Eloy Coto <eloy.coto@acalustra.com>
- Loading branch information
Showing
3 changed files
with
64 additions
and
3 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Release new version | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
permissions: | ||
pull-requests: write | ||
contents: write | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'temurin' | ||
java-version: '17' | ||
|
||
- name: "Git config" | ||
run: | | ||
git config user.name 'Parodos bot' | ||
git config user.email 'parodos@redhat.com' | ||
- name: Configure Maven settings | ||
run: | | ||
mkdir -p ~/.m2/ | ||
echo "<settings><servers><server><id>ossrh</id><username>${{ secrets.MAVEN_USER }}</username><password>${{ secrets.MAVEN_PASSWORD }}</password></server></servers></settings>" > ~/.m2/settings.xml | ||
- name: Login to Docker Hub | ||
uses: docker/login-action@v2 | ||
with: | ||
registry: "quay.io" | ||
username: "${{ secrets.QUAY_GITHUB_USER }}" | ||
password: "${{ secrets.QUAY_GITHUB_TOKEN }}" | ||
|
||
- name: Import GPG secret key | ||
run: | | ||
mkdir -p ~/.gnupg/ | ||
echo "${{ secrets.GPG }}" | base64 --decode > ~/.gnupg/private.key | ||
gpg --batch --import ~/.gnupg/private.key | ||
- name: "Do the release" | ||
run: | | ||
make release-all | ||
- name: "Commit the new changes" | ||
run: | | ||
export KEY=$(date +%y%m%d) | ||
git add . | ||
git commit -m "NON-issue: bump version on $KEY" | ||
- name: Create Pull Request | ||
uses: peter-evans/create-pull-request@v5 | ||
with: | ||
title: "NON-issue: bump version" |
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
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