Remove PR trigger from Docker workflow #10
Workflow file for this run
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: Package and Push Helm Chart | |
| # | |
| # on: | |
| # push: | |
| # tags: ['v*'] | |
| # workflow_dispatch: | |
| # | |
| # env: | |
| # REGISTRY: ghcr.io | |
| # CHART_NAME: s3proxy-python | |
| # | |
| # jobs: | |
| # helm-publish: | |
| # runs-on: ubuntu-latest | |
| # permissions: | |
| # contents: read | |
| # packages: write | |
| # | |
| # steps: | |
| # - name: Checkout repository | |
| # uses: actions/checkout@v6.0.2 | |
| # | |
| # - name: Set up Helm | |
| # uses: azure/setup-helm@v4.3.1 | |
| # | |
| # - name: Log in to Container Registry | |
| # run: | | |
| # echo "${{ secrets.GITHUB_TOKEN }}" | helm registry login ${{ env.REGISTRY }} -u ${{ github.actor }} --password-stdin | |
| # | |
| # - name: Add Helm dependency repositories | |
| # run: | | |
| # helm repo add dandydev https://dandydeveloper.github.io/charts | |
| # helm repo update | |
| # | |
| # - name: Update Helm dependencies | |
| # run: | | |
| # helm dependency update manifests/ | |
| # | |
| # - name: Get chart version | |
| # id: chart | |
| # run: | | |
| # VERSION=$(grep '^version:' manifests/Chart.yaml | awk '{print $2}') | |
| # echo "version=$VERSION" >> $GITHUB_OUTPUT | |
| # # Use tag version if this is a tag push | |
| # if [[ "${{ github.ref }}" == refs/tags/v* ]]; then | |
| # TAG_VERSION="${{ github.ref_name }}" | |
| # TAG_VERSION="${TAG_VERSION#v}" | |
| # echo "version=$TAG_VERSION" >> $GITHUB_OUTPUT | |
| # fi | |
| # | |
| # - name: Update chart version for tags | |
| # if: startsWith(github.ref, 'refs/tags/v') | |
| # run: | | |
| # TAG_VERSION="${{ github.ref_name }}" | |
| # TAG_VERSION="${TAG_VERSION#v}" | |
| # sed -i "s/^version:.*/version: $TAG_VERSION/" manifests/Chart.yaml | |
| # sed -i "s/^appVersion:.*/appVersion: \"$TAG_VERSION\"/" manifests/Chart.yaml | |
| # | |
| # - name: Lint Helm chart | |
| # run: | | |
| # helm lint manifests/ | |
| # | |
| # - name: Package Helm chart | |
| # run: | | |
| # helm package manifests/ --destination . | |
| # | |
| # - name: Push Helm chart to OCI registry | |
| # run: | | |
| # helm push ${{ env.CHART_NAME }}-${{ steps.chart.outputs.version }}.tgz oci://${{ env.REGISTRY }}/${{ github.repository_owner }}/charts |