Update Helm release application to v2 #14
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: Nordmart Review Helm Chart | |
on: | |
pull_request: | |
branches: | |
- main | |
paths: | |
- 'nordmart-review/**' | |
push: | |
branches: | |
- main | |
paths: | |
- 'nordmart-review/**' | |
- '.github/workflows/normart_review.yaml' | |
jobs: | |
next-version: | |
uses: stakater/charts/.github/workflows/next_version.yaml@main | |
with: | |
component: nordmart-review | |
pull-request: | |
uses: stakater/charts/.github/workflows/pull_request.yaml@main | |
name: Pull Request | |
if: ${{ github.ref != 'refs/heads/main' }} | |
needs: | |
- next-version | |
secrets: | |
REGISTRY_USERNAME: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
CONTAINER_REGISTRY_URL: ghcr.io/stakater | |
HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts | |
SUBPATH: nordmart-review | |
NEXT_VERSION: ${{ needs.next-version.outputs.version }} | |
push-and-release: | |
uses: stakater/charts/.github/workflows/push.yaml@main | |
name: Push and Release | |
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
needs: | |
- next-version | |
secrets: | |
REGISTRY_USERNAME: ${{ github.actor }} | |
REGISTRY_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
CONTAINER_REGISTRY_URL: ghcr.io/stakater | |
HELM_REGISTRY_URL: oci://ghcr.io/stakater/charts | |
SUBPATH: nordmart-review | |
NEXT_VERSION: ${{ needs.next-version.outputs.version }} |