feat: regex for swiss-specific identifiers #3
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
| # Publish Helm Chart to GHCR (OCI Registry) | |
| name: Publish Helm Chart | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "src/chart/**" | |
| - ".github/workflows/publish-helm-chart.yml" | |
| workflow_dispatch: | |
| env: | |
| CHART_DIR: src/chart | |
| REGISTRY: ghcr.io | |
| CHART_REF: ghcr.io/${{ github.repository_owner }}/deid-module-chart | |
| jobs: | |
| publish-helm-chart: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Helm | |
| uses: azure/setup-helm@v4 | |
| with: | |
| version: v3.14.4 | |
| - name: Log in to GHCR (OCI registry) | |
| run: | | |
| echo ${{ secrets.GITHUB_TOKEN }} | helm registry login ${{ env.REGISTRY }} --username ${{ github.actor }} --password-stdin | |
| - name: Package Helm chart | |
| run: | | |
| helm package $CHART_DIR --destination packaged | |
| - name: Push Helm chart to GHCR | |
| run: | | |
| CHART_PACKAGE=$(ls packaged/*.tgz) | |
| helm push "$CHART_PACKAGE" oci://$CHART_REF | |
| - name: Logout from GHCR | |
| run: | | |
| helm registry logout ${{ env.REGISTRY }} |