chore(deps): update postgresql docker tag to v16.7.24 (#159) #55
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: | | |
| 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@184bdaa0721073962dff0199f1fb9940f07167d1 #pin@v3.3.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.actor }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| - name: Install Cosign | |
| uses: sigstore/cosign-installer@d58896d6a1865668819e1d91763c7751a165e159 #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 |