fix(deps): update module github.com/tofuutils/tenv/v4 to v4.9.0 (#766) #1049
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: Helm CI/CD | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - v* | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - ".github/workflows/helm.yaml" | |
| - "deploy/charts/**" | |
| env: | |
| CHART_NAME: burrito | |
| CHART_PATH: ./deploy/charts/burrito | |
| CHART_REPO: ghcr.io/${{ github.repository_owner }}/charts | |
| jobs: | |
| helm-render: | |
| name: Helm Render | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: Helm Render | |
| run: helm template ${{ env.CHART_PATH }} | |
| helm-push: | |
| name: Helm Push | |
| runs-on: ubuntu-latest | |
| needs: helm-render | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| - name: GHCR Login | |
| run: echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ghcr.io -u ${{ github.repository_owner }} --password-stdin | |
| - name: Compute versions | |
| shell: bash | |
| run: | | |
| CURRENT_VERSION=$(yq $CHART_PATH/Chart.yaml --expression .version) | |
| if [[ ${{ github.event_name }} == 'pull_request' || ${{ github.event_name }} == 'push' && ${{ github.ref_type }} == 'branch' ]]; then | |
| echo "VERSION=$(echo $CURRENT_VERSION-${{ github.sha }})" >> $GITHUB_ENV | |
| echo "APP_VERSION=${{ github.sha }}" >> $GITHUB_ENV | |
| elif [[ ${{ github.event_name }} == 'push' && ${{ github.ref_type }} == 'tag' ]]; then | |
| echo "VERSION=$(echo ${{ github.ref_name }} | sed 's/v//')" >> $GITHUB_ENV | |
| echo "APP_VERSION=${{ github.ref_name }}" >> $GITHUB_ENV | |
| else | |
| echo "Unsupported event type" | |
| exit 1 | |
| fi | |
| - name: Helm Package | |
| run: helm package ${{ env.CHART_PATH }} -u --version ${{ env.VERSION }} --app-version ${{ env.APP_VERSION }} | |
| - name: Helm Push | |
| run: helm push ./${{ env.CHART_NAME }}-${{ env.VERSION }}.tgz oci://ghcr.io/${{ github.repository_owner }}/charts |