chore: fix ci
This commit is contained in:
parent
52e6eb93a8
commit
eaf65ad46c
2 changed files with 16 additions and 27 deletions
|
@ -13,13 +13,9 @@ jobs:
|
||||||
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
if: ${{ !startsWith(github.event.head_commit.message, 'Release') }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: "Initialize Environment"
|
- name: "Initialize Environment"
|
||||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.0.4
|
id: initialize
|
||||||
|
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.2
|
||||||
with:
|
with:
|
||||||
roleid: ${{ secrets.VAULT_ROLE_ID }}
|
roleid: ${{ secrets.VAULT_ROLE_ID }}
|
||||||
secretid: ${{ secrets.VAULT_SECRET_ID }}
|
secretid: ${{ secrets.VAULT_SECRET_ID }}
|
||||||
|
@ -46,7 +42,9 @@ jobs:
|
||||||
NEW_VERSION=${{steps.generate_next_version.outputs.version}}
|
NEW_VERSION=${{steps.generate_next_version.outputs.version}}
|
||||||
echo NEW_VERSION=$NEW_VERSION >> "$GITHUB_ENV"
|
echo NEW_VERSION=$NEW_VERSION >> "$GITHUB_ENV"
|
||||||
echo "New version: $NEW_VERSION"
|
echo "New version: $NEW_VERSION"
|
||||||
mvn -B --file pom.xml versions:set -DnewVersion=${{ env.NEW_VERSION }}
|
echo "mvn -B --file pom.xml versions:set -DnewVersion=$NEW_VERSION"
|
||||||
|
mvn -B --file pom.xml versions:set -DnewVersion=$NEW_VERSION
|
||||||
|
|
||||||
|
|
||||||
- name: "Run JReleaser (Changelog)"
|
- name: "Run JReleaser (Changelog)"
|
||||||
uses: https://w9r.dev/actions/release-action@main
|
uses: https://w9r.dev/actions/release-action@main
|
||||||
|
@ -63,18 +61,18 @@ jobs:
|
||||||
JRELEASER_GPG_SECRET_KEY: ${{ env.GPG_PRIVATE_KEY }}
|
JRELEASER_GPG_SECRET_KEY: ${{ env.GPG_PRIVATE_KEY }}
|
||||||
|
|
||||||
- name: "Commit and push changes"
|
- name: "Commit and push changes"
|
||||||
run: |
|
uses: https://w9r.dev/w9r.dev/action-git-commit-push@main
|
||||||
git config --global user.email "${{ steps.import-gpg.outputs.email }}"
|
with:
|
||||||
git config --global user.name "${{ steps.import-gpg.outputs.name }}"
|
email: ${{ steps.initialize.outputs.gitemail }}
|
||||||
git add pom.xml CHANGELOG.md
|
name: ${{ steps.initialize.outputs.gituser }}
|
||||||
git commit -S -m "Release ${{ env.NEW_VERSION }}"
|
commit_message: "Release ${{ env.NEW_VERSION }}"
|
||||||
git push
|
files: pom.xml CHANGELOG.md
|
||||||
|
access_token: ${{ env.JRELEASER_GITEA_TOKEN }}
|
||||||
|
|
||||||
- name: Build package and populate staging area for deployment
|
- name: Build package and populate staging area for deployment
|
||||||
run: |
|
run: |
|
||||||
mvn -B --file pom.xml package
|
mvn -B --file pom.xml package
|
||||||
mvn --file pom.xml -Ppublication
|
mvn --file pom.xml -Ppublication^
|
||||||
|
|
||||||
|
|
||||||
- name: "Run JReleaser (Assemble)"
|
- name: "Run JReleaser (Assemble)"
|
||||||
uses: https://w9r.dev/actions/release-action@main
|
uses: https://w9r.dev/actions/release-action@main
|
||||||
|
@ -105,9 +103,6 @@ jobs:
|
||||||
JRELEASER_ARTIFACTORY_USERNAME: ${{ env.NEXUS_USERNAME }}
|
JRELEASER_ARTIFACTORY_USERNAME: ${{ env.NEXUS_USERNAME }}
|
||||||
JRELEASER_ARTIFACTORY_TOKEN: ${{ env.NEXUS_PASSWORD }}
|
JRELEASER_ARTIFACTORY_TOKEN: ${{ env.NEXUS_PASSWORD }}
|
||||||
|
|
||||||
|
|
||||||
# Persist logs
|
|
||||||
|
|
||||||
- name: JReleaser release trace
|
- name: JReleaser release trace
|
||||||
if: always()
|
if: always()
|
||||||
uses: https://gitea.com/actions/upload-artifact@v3
|
uses: https://gitea.com/actions/upload-artifact@v3
|
||||||
|
|
|
@ -13,14 +13,8 @@ jobs:
|
||||||
name: "SonarQube Trigger"
|
name: "SonarQube Trigger"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
fetch-depth: 0
|
|
||||||
|
|
||||||
- name: "Initialize Environment"
|
- name: "Initialize Environment"
|
||||||
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.0.4
|
uses: https://w9r.dev/w9r.dev/action-setup-environment@v1.1.1
|
||||||
with:
|
with:
|
||||||
roleid: "${{ secrets.VAULT_ROLE_ID }}"
|
roleid: "${{ secrets.VAULT_ROLE_ID }}"
|
||||||
secretid: "${{ secrets.VAULT_SECRET_ID }}"
|
secretid: "${{ secrets.VAULT_SECRET_ID }}"
|
||||||
|
@ -29,8 +23,8 @@ jobs:
|
||||||
uses: https://github.com/actions/cache@v4
|
uses: https://github.com/actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.sonar/cache
|
path: ~/.sonar/cache
|
||||||
key: ""${{ runner.os }}-sonar"
|
key: "${{ runner.os }}-sonar"
|
||||||
restore-keys: ""${{ runner.os }}-sonar"
|
restore-keys: "${{ runner.os }}-sonar"
|
||||||
|
|
||||||
- name: "SonarQube Scan"
|
- name: "SonarQube Scan"
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Reference in a new issue