chore: bump app version to v3.4.1 and chart to v1.16.2 #39
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: Build and Release | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - deploy/helm/Chart.yaml | |
| workflow_dispatch: | |
| inputs: | |
| skip-e2e: | |
| description: Skip e2e tests | |
| type: boolean | |
| default: false | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| packages: read | |
| jobs: | |
| detect: | |
| timeout-minutes: 5 | |
| runs-on: ubuntu-24.04 | |
| outputs: | |
| skip: ${{ steps.detect.outputs.app_release_exists }} | |
| app_version: ${{ steps.detect.outputs.app_version }} | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| submodules: true | |
| - id: detect | |
| uses: ./.github/actions/detect-versions | |
| build-image: | |
| needs: detect | |
| if: ${{ needs.detect.outputs.skip == 'false' }} | |
| uses: ./.github/workflows/_reusable-build.yaml | |
| with: | |
| tags: ${{ github.sha }} | |
| secrets: inherit | |
| permissions: | |
| contents: read | |
| packages: write | |
| e2e: | |
| needs: build-image | |
| if: needs.detect.outputs.skip == 'false' && !inputs['skip-e2e'] | |
| uses: ./.github/workflows/_reusable-e2e.yaml | |
| with: | |
| image_tag: ${{ github.sha }} | |
| secrets: inherit | |
| release: | |
| needs: [detect, build-image, e2e] | |
| if: >- | |
| always() && | |
| needs.detect.outputs.skip == 'false' && | |
| needs.build-image.result == 'success' && | |
| (needs.e2e.result == 'success' || needs.e2e.result == 'skipped') | |
| uses: upcloud-tools/gha-actions/.github/workflows/release-container.yaml@c0df829cbad57268497db8cfb6174419f925b283 | |
| with: | |
| app_version: ${{ needs.detect.outputs.app_version }} | |
| secrets: inherit | |
| permissions: | |
| contents: write | |
| packages: write | |
| id-token: write | |
| attestations: write |