chore(deps): update quay.io/kiwigrid/k8s-sidecar docker tag to v1.26.… #98
This file contains 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: chart-publish | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "charts/**" | |
- "!charts/**/README.md" | |
env: | |
HELM_DOCS_VERSION: "1.12.0" | |
permissions: read-all | |
jobs: | |
publish: | |
permissions: | |
contents: write # for helm/chart-releaser-action to push chart release and create a release | |
packages: write # for helm/chart-releaser-action to push chart release and create a release | |
id-token: write # for helm/chart-releaser-action to push chart release and create a release | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # v4.1.5 | |
with: | |
fetch-depth: 0 | |
- name: Install Helm | |
uses: azure/setup-helm@5119fcb9089d432beecbf79bb2c7915207344b78 # v3.5 | |
- name: Configure Git | |
run: | | |
git config user.name "$GITHUB_ACTOR" | |
git config user.email "$GITHUB_ACTOR@users.noreply.github.com" | |
- name: install helm-docs | |
run: | | |
cd /tmp | |
wget https://github.com/norwoodj/helm-docs/releases/download/v${{env.HELM_DOCS_VERSION}}/helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz | |
tar -xvf helm-docs_${{env.HELM_DOCS_VERSION}}_Linux_x86_64.tar.gz | |
sudo mv helm-docs /usr/local/sbin | |
- name: run helm-docs | |
run: | | |
helm-docs -t README.md.gotmpl -o README.md -b for-the-badge | |
- name: Login to GHCR | |
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0 | |
with: | |
registry: ghcr.io | |
username: ${ GITHUB_REPOSITORY_OWNER } | |
password: ${{ secrets.GITHUB_TOKEN }} | |
- name: Run Artifact Hub lint | |
run: | | |
curl -s https://api.github.com/repos/artifacthub/hub/releases/latest | grep -E 'browser_download_url' | grep linux_amd64.tar.gz\" | grep -Eo 'https://[^\"]*' | xargs wget -O - | tar -xz | |
./ah lint -p charts/node-red || exit 1 | |
rm -f ./ah | |
- name: Run chart-releaser | |
uses: helm/chart-releaser-action@a917fd15b20e8b64b94d9158ad54cd6345335584 # v1.6.0 | |
with: | |
config: "./.github/configs/cr.yaml" | |
env: | |
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
- uses: sigstore/cosign-installer@59acb6260d9c0ba8f4a2f9d9b48431a222b68e20 # v3.5.0 | |
- name: Push chart to GHCR | |
env: | |
COSIGN_EXPERIMENTAL: 1 | |
run: | | |
shopt -s nullglob | |
for pkg in .cr-release-packages/*; do | |
if [ -z "${pkg:-}" ]; then | |
break | |
fi | |
helm push "${pkg}" oci://ghcr.io/schwarzit/charts |& tee .digest | |
cosign sign -y $(cat .digest | awk -F "[, ]+" '/Pushed/{print $NF}') | |
done |