chore: upgrade container image to node 22 #226
This file contains hidden or 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: Release Charts | |
| on: | |
| push: | |
| branches: | |
| - master | |
| - development | |
| workflow_dispatch: | |
| jobs: | |
| prepare: | |
| name: 🔨 Initialisieren | |
| runs-on: ubuntu-latest | |
| outputs: | |
| version: ${{ steps.version.outputs.prop }} | |
| commit: ${{ steps.set-commit.outputs.commit }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: get version | |
| id: version | |
| uses: notiz-dev/github-action-json-property@v0.2.0 | |
| with: | |
| path: 'package.json' | |
| prop_path: 'version' | |
| - name: set commit | |
| id: set-commit | |
| run: echo "commit=${GITHUB_SHA:0:7}" >> $GITHUB_OUTPUT | |
| release: | |
| needs: prepare | |
| permissions: | |
| contents: write | |
| packages: write | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| with: | |
| fetch-depth: 0 | |
| - name: set chart version | |
| run: | | |
| sed -i "s/version: .*/version: ${{ needs.prepare.outputs.version }}-${{ needs.prepare.outputs.commit }}/g" chart/brahmsee-digital/Chart.yaml | |
| - name: set commit in values | |
| run: | | |
| sed -i "s/commit: .*/commit: ${{ needs.prepare.outputs.commit }}/g" chart/brahmsee-digital/values.yaml | |
| - name: Chart | Push brahmsee-digital | |
| uses: appany/helm-oci-chart-releaser@v0.3.0 | |
| with: | |
| name: brahmsee-digital | |
| repository: codeanker/brahmsee.digital | |
| tag: ${{needs.prepare.outputs.version}}-${{needs.prepare.outputs.commit}} | |
| path: chart/brahmsee-digital | |
| registry: ghcr.io | |
| registry_username: ${{ github.actor }} | |
| registry_password: ${{ secrets.GITHUB_TOKEN }} |