Skip to content

bump two charts (#1871) #34

bump two charts (#1871)

bump two charts (#1871) #34

name: Release Charts
on:
push:
branches:
- main
paths:
- "charts/**"
jobs:
release:
runs-on: ubuntu-latest
container: ghcr.io/cpanato/chart-releaser:latest-amd64@sha256:a3ee4d1a6b147bb317cd96b4449205f0e18e3e041c009c5cfa737a11ad82baaf
permissions:
contents: write
# packages: write
# id-token: write
steps:
- name: Checkout
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
fetch-depth: 0
# - name: Install Cosign
# uses: sigstore/cosign-installer@11086d25041f77fe8fe7b9ea4e48e3b9192b8f19 # v3.1.2
- name: Configure Git
run: |
ls -la
git config --global user.name "$GITHUB_ACTOR"
git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
git config --global --add safe.directory "$GITHUB_WORKSPACE"
- name: Set up Helm
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5
- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.6.0
with:
charts_dir: charts
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# - name: Run chart-releaser
# uses: cpanato/chart-releaser-action@test-index
# env:
# CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
# with:
# skip_cr_install: true
# packages_with_index: true
# - name: Login to GitHub Container Registry
# uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
# with:
# registry: ghcr.io
# username: ${{ github.actor }}
# password: ${{ secrets.GITHUB_TOKEN }}
# - 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 "ghcr.io/${GITHUB_REPOSITORY}/${chart_name}@${digest}"
# done
# env:
# COSIGN_YES: true