chore(deps): update quay.io/kiwigrid/k8s-sidecar docker tag to v1.28.… #101
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@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 | |
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@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3.3.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@4959ce089c160fddf62f7b42464195ba1a56d382 # v3.6.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 |