chore(deps): update maven all non-major dependencies to v3.13.3 (#85) #28
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: Merge | |
on: | |
push: | |
branches: [main] | |
paths-ignore: | |
- '*.md' | |
- '.github/**' | |
- '.github/graphics/**' | |
- '!.github/workflows/**' | |
- 'renovate.json' | |
- 'target/**' | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }} | |
cancel-in-progress: true | |
jobs: | |
vars: | |
name: Set Variables | |
outputs: | |
pr: ${{ steps.pr.outputs.pr }} | |
runs-on: ubuntu-22.04 | |
timeout-minutes: 1 | |
steps: # Get PR number for squash merges to main | |
- name: PR Number | |
id: pr | |
uses: bcgov-nr/[email protected] | |
semantic-release: | |
runs-on: ubuntu-22.04 | |
needs: [vars] | |
outputs: | |
tag: ${{ steps.changelog.outputs.tag }} | |
version: ${{ steps.changelog.outputs.version }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Conventional Changelog Update | |
uses: TriPSs/conventional-changelog-action@v5 | |
id: changelog | |
continue-on-error: true | |
with: | |
github-token: ${{ github.token }} | |
output-file: 'CHANGELOG.md' | |
skip-version-file: 'true' | |
skip-commit: 'true' | |
skip-on-empty: 'false' | |
git-push: 'true' | |
- name: Create Release | |
uses: softprops/action-gh-release@v2 | |
if: ${{ steps.changelog.outputs.version != '' }} | |
continue-on-error: true | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
with: | |
token: ${{ github.token }} | |
tag_name: ${{ steps.changelog.outputs.tag }} | |
name: ${{ steps.changelog.outputs.tag }} | |
body: ${{ steps.changelog.outputs.clean_changelog }} | |
builds: | |
name: Builds | |
needs: semantic-release | |
runs-on: ubuntu-22.04 | |
permissions: | |
packages: write | |
strategy: | |
matrix: | |
package: [ nr-oracle-service, nr-oracle-service-init ] | |
include: | |
- package: nr-oracle-service | |
build_file: Dockerfile | |
build_context: . | |
triggers: ('src/' 'pom.xml') | |
- package: nr-oracle-service-init | |
build_file: Dockerfile.certs | |
build_context: . | |
triggers: ('get_certs.sh' 'Dockerfile.certs') | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: bcgov-nr/[email protected] | |
with: | |
package: ${{ matrix.package }} | |
tag: ${{ needs.semantic-release.outputs.version }} | |
token: ${{ secrets.GITHUB_TOKEN }} | |
build_file: ${{ matrix.build_file }} | |
build_context: ${{ matrix.build_context }} | |
triggers: ${{ matrix.triggers }} | |
build_args: | | |
APP_VERSION=${{ needs.semantic-release.outputs.version }} | |
helm-release: | |
runs-on: ubuntu-22.04 | |
needs: [builds,semantic-release] | |
if: ${{ needs.semantic-release.outputs.version != '' }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "[email protected]" | |
- name: package helm chart | |
shell: bash | |
run: | | |
helm package -u --destination=.cr-release-packages --app-version="${{ needs.semantic-release.outputs.tag }}" --version=${{ needs.semantic-release.outputs.version }} charts/${{ github.event.repository.name }} | |
- name: Run chart-releaser | |
uses: helm/[email protected] | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
with: | |
skip_packaging: 'true' | |