chore(deps): update ghcr.io/pact-foundation/pact-broker docker tag to… #63
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: Release Charts | |
| on: | |
| push: | |
| branches: | |
| - master | |
| paths: | |
| - "charts/**" | |
| jobs: | |
| release: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| packages: write | |
| id-token: write | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 0 | |
| - name: Configure Git | |
| run: | | |
| git config user.name "$GITHUB_ACTOR" | |
| git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
| - name: Add dependencies | |
| run: | | |
| # Still need bitnami repo for the common chart dependency | |
| helm repo add bitnami https://charts.bitnami.com/bitnami | |
| - name: Run chart-releaser | |
| uses: helm/chart-releaser-action@3e001cb8c68933439c7e721650f20a07a1a5c61e # pin@v1.6.0 | |
| with: | |
| config: cr.yaml | |
| env: | |
| CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@28fdb31ff34708d19615a74d67103ddc2ea9725c #pin@v3.3.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Cosign | |
| uses: sigstore/cosign-installer@faadad0cce49287aee09b3a48701e75088a2c6ad #pin@v3.7.0 | |
| - name: Publish and Sign OCI Charts | |
| run: | | |
| for chart in `find .cr-release-packages -name '*.tgz' -print`; do | |
| helm push ${chart} oci://ghcr.io/${GITHUB_REPOSITORY} |& tee helm-push-output.log | |
| file_name=${chart##*/} | |
| chart_name=${file_name%-*} | |
| digest=$(awk -F "[, ]+" '/Digest/{print $NF}' < helm-push-output.log) | |
| cosign sign -y "ghcr.io/${GITHUB_REPOSITORY}/${chart_name}@${digest}" | |
| done | |
| env: | |
| COSIGN_EXPERIMENTAL: 1 |