forked from Gitea/helm-actions

This PR contains the following updates: | Package | Type | Update | Change | Age | Confidence | |---|---|---|---|---|---| | [alpine/helm](https://github.com/alpine-docker/helm) ([changelog](https://github.com/helm/helm)) | | minor | `3.17.1` -> `3.19.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [alpine/helm](https://github.com/alpine-docker/helm) ([changelog](https://github.com/helm/helm)) | container | minor | `3.17.1` -> `3.19.0` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [commitlint/commitlint](https://github.com/conventional-changelog/commitlint) | container | minor | `19.7.1` -> `19.9.1` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | | [markdownlint-cli](https://github.com/igorshubovych/markdownlint-cli) | devDependencies | minor | [`^0.44.0` -> `^0.45.0`](https://renovatebot.com/diffs/npm/markdownlint-cli/0.44.0/0.45.0) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes <details> <summary>conventional-changelog/commitlint (commitlint/commitlint)</summary> ### [`v19.9.1`](https://github.com/conventional-changelog/commitlint/blob/HEAD/CHANGELOG.md#1991-2025-08-29) [Compare Source](https://github.com/conventional-changelog/commitlint/compare/v19.9.0...v19.9.1) ##### Bug Fixes - add TypeScript support and configuration for pnpm scopes ([#​4544](https://github.com/conventional-changelog/commitlint/issues/4544)) ([ea75778](ea75778e8d
)) ### [`v19.9.0`](https://github.com/conventional-changelog/commitlint/blob/HEAD/CHANGELOG.md#1990-2025-08-26) [Compare Source](https://github.com/conventional-changelog/commitlint/compare/v19.8.1...v19.9.0) ##### Bug Fixes - update dependency jest-environment-node to v30 ([#​4448](https://github.com/conventional-changelog/commitlint/issues/4448)) ([42ca849](42ca849db3
)) - update dependency jest-environment-node to v30.0.2 ([#​4469](https://github.com/conventional-changelog/commitlint/issues/4469)) ([4da7e43](4da7e43be4
)) - update dependency tar-fs to v3.0.10 ([#​4461](https://github.com/conventional-changelog/commitlint/issues/4461)) ([f02c47c](f02c47c669
)) - update dependency tar-fs to v3.0.9 ([#​4421](https://github.com/conventional-changelog/commitlint/issues/4421)) ([0650e03](0650e03d96
)) - update dependency tar-fs to v3.1.0 ([#​4496](https://github.com/conventional-changelog/commitlint/issues/4496)) ([31b4f72](31b4f72d2f
)) ##### Features - **config-pnpm-scopes:** migrate package to TypeScript ([#​4541](https://github.com/conventional-changelog/commitlint/issues/4541)) ([6ae36ea](6ae36ea5a5
)) ##### Reverts - Revert "chore: update dependency cross-env to v10 ([#​4528](https://github.com/conventional-changelog/commitlint/issues/4528))" ([#​4529](https://github.com/conventional-changelog/commitlint/issues/4529)) ([b5bfd12](b5bfd12514
)), closes [#​4528](https://github.com/conventional-changelog/commitlint/issues/4528) [#​4529](https://github.com/conventional-changelog/commitlint/issues/4529) #### [19.8.1](https://github.com/conventional-changelog/commitlint/compare/v19.8.0...v19.8.1) (2025-05-08) ##### Bug Fixes - update dependency tinyexec to v1 ([#​4332](https://github.com/conventional-changelog/commitlint/issues/4332)) ([e49449f](e49449fa94
)) - update dependency tinyexec to v1.0.1 ([#​4347](https://github.com/conventional-changelog/commitlint/issues/4347)) ([c1b26d1](c1b26d1579
)) ##### Performance Improvements - **rules:** optimize header-trim ([#​4363](https://github.com/conventional-changelog/commitlint/issues/4363)) ([b7e404b](b7e404bc03
)) ### [`v19.8.1`](https://github.com/conventional-changelog/commitlint/blob/HEAD/CHANGELOG.md#1981-2025-05-08) [Compare Source](https://github.com/conventional-changelog/commitlint/compare/v19.8.0...v19.8.1) ##### Bug Fixes - update dependency tinyexec to v1 ([#​4332](https://github.com/conventional-changelog/commitlint/issues/4332)) ([e49449f](e49449fa94
)) - update dependency tinyexec to v1.0.1 ([#​4347](https://github.com/conventional-changelog/commitlint/issues/4347)) ([c1b26d1](c1b26d1579
)) ##### Performance Improvements - **rules:** optimize header-trim ([#​4363](https://github.com/conventional-changelog/commitlint/issues/4363)) ([b7e404b](b7e404bc03
)) ### [`v19.8.0`](https://github.com/conventional-changelog/commitlint/blob/HEAD/CHANGELOG.md#1980-2025-03-07) [Compare Source](https://github.com/conventional-changelog/commitlint/compare/v19.7.1...v19.8.0) ##### Bug Fixes - **config-lerna-scopes:** remove deprecated [@​lerna/project](https://github.com/lerna/project) dependency ([#​4284](https://github.com/conventional-changelog/commitlint/issues/4284)) ([f2f78f1](f2f78f105a
)) - update dependency semver to v7.7.1 ([#​4272](https://github.com/conventional-changelog/commitlint/issues/4272)) ([6148587](6148587400
)) ##### Features - **config-workspace-scopes:** add config preset for npm and yarn workspaces ([#​4269](https://github.com/conventional-changelog/commitlint/issues/4269)) ([67ff9e8](67ff9e82c1
)) ##### Performance Improvements - use `node:` prefix to bypass require.cache call for builtins ([#​4302](https://github.com/conventional-changelog/commitlint/issues/4302)) ([0cd8f41](0cd8f41057
)) ##### Reverts - Revert "fix: improve security validation regex in is-ignored function ([#​4258](https://github.com/conventional-changelog/commitlint/issues/4258))" ([#​4314](https://github.com/conventional-changelog/commitlint/issues/4314)) ([b27024a](b27024a5ae
)), closes [#​4258](https://github.com/conventional-changelog/commitlint/issues/4258) [#​4314](https://github.com/conventional-changelog/commitlint/issues/4314) #### [19.7.1](https://github.com/conventional-changelog/commitlint/compare/v19.7.0...v19.7.1) (2025-02-02) ##### Bug Fixes - **config-nx-scopes:** fix for projects without explicit targets ([#​4261](https://github.com/conventional-changelog/commitlint/issues/4261)) ([25bb2cd](25bb2cd8c7
)) - improve security validation regex in is-ignored function ([#​4258](https://github.com/conventional-changelog/commitlint/issues/4258)) ([7403d63](7403d6382c
)) - update dependency fast-glob to v3.3.3 ([#​4235](https://github.com/conventional-changelog/commitlint/issues/4235)) ([c286237](c286237333
)) - update dependency fs-extra to v11.3.0 ([#​4249](https://github.com/conventional-changelog/commitlint/issues/4249)) ([39acfe4](39acfe4a3d
)) - update dependency tar-fs to v3.0.7 ([#​4243](https://github.com/conventional-changelog/commitlint/issues/4243)) ([708320f](708320f040
)) - update dependency tar-fs to v3.0.8 ([#​4247](https://github.com/conventional-changelog/commitlint/issues/4247)) ([ecb5d3a](ecb5d3a1c5
)) </details> <details> <summary>igorshubovych/markdownlint-cli (markdownlint-cli)</summary> ### [`v0.45.0`](https://github.com/igorshubovych/markdownlint-cli/releases/tag/v0.45.0) [Compare Source](https://github.com/igorshubovych/markdownlint-cli/compare/v0.44.0...v0.45.0) - Update `markdownlint` dependency to `0.38.0` - Add `MD059`/`descriptive-link-text` - Improve `MD025`/`MD027`/`MD036`/`MD038`/`MD041`/`MD043`/`MD045`/`MD051`/`MD052` - Remove support for end-of-life Node version 18 - Update all dependencies via `Dependabot` </details> --- ### Configuration 📅 **Schedule**: Branch creation - Only on Sunday and Saturday ( * * * * 0,6 ) (UTC), Automerge - Between 12:00 AM and 03:59 AM ( * 0-3 * * * ) (UTC). 🚦 **Automerge**: Enabled. ♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox. 👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://github.com/renovatebot/renovate/discussions) if that's undesired. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xOC4xIiwidXBkYXRlZEluVmVyIjoiNDEuMTguMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsia2luZC9kZXBlbmRlbmN5Il19--> Reviewed-on: https://gitea.com/gitea/helm-actions/pulls/64 Reviewed-by: DaanSelen <daanselen@noreply.gitea.com> Co-authored-by: Renovate Bot <renovate-bot@gitea.com> Co-committed-by: Renovate Bot <renovate-bot@gitea.com>
71 lines
3.1 KiB
YAML
71 lines
3.1 KiB
YAML
name: generate-chart
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "*"
|
|
|
|
env:
|
|
# renovate: datasource=docker depName=alpine/helm
|
|
HELM_VERSION: "3.19.0"
|
|
|
|
jobs:
|
|
generate-chart-publish:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: install tools
|
|
run: |
|
|
apt update -y
|
|
apt install -y curl ca-certificates curl gnupg
|
|
# helm
|
|
curl -O https://get.helm.sh/helm-v${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
tar -xzf helm-v${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
mv linux-amd64/helm /usr/local/bin/
|
|
rm -rf linux-amd64 helm-v${{ env.HELM_VERSION }}-linux-amd64.tar.gz
|
|
helm version
|
|
# docker
|
|
install -m 0755 -d /etc/apt/keyrings
|
|
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
|
|
chmod a+r /etc/apt/keyrings/docker.gpg
|
|
echo "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | tee /etc/apt/sources.list.d/docker.list > /dev/null
|
|
apt update -y
|
|
apt install -y python3 python3-pip apt-transport-https docker-ce-cli
|
|
pip install awscli --break-system-packages
|
|
|
|
- name: Import GPG key
|
|
id: import_gpg
|
|
uses: https://github.com/crazy-max/ghaction-import-gpg@v6
|
|
with:
|
|
gpg_private_key: ${{ secrets.GPGSIGN_KEY }}
|
|
passphrase: ${{ secrets.GPGSIGN_PASSPHRASE }}
|
|
fingerprint: CC64B1DB67ABBEECAB24B6455FC346329753F4B0
|
|
|
|
# Using helm gpg plugin as 'helm package --sign' has issues with gpg2: https://github.com/helm/helm/issues/2843
|
|
- name: package chart
|
|
run: |
|
|
echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | docker login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} --password-stdin
|
|
# FIXME: use upstream after https://github.com/technosophos/helm-gpg/issues/1 is solved
|
|
helm plugin install https://github.com/pat-s/helm-gpg
|
|
helm dependency build
|
|
helm package --version "${GITHUB_REF#refs/tags/v}" ./
|
|
mkdir actions
|
|
mv actions*.tgz actions/
|
|
curl -s -L -o actions/index.yaml https://dl.gitea.com/charts/index.yaml
|
|
helm repo index actions/ --url https://dl.gitea.com/charts --merge actions/index.yaml
|
|
# push to dockerhub
|
|
echo ${{ secrets.DOCKER_CHARTS_PASSWORD }} | helm registry login -u ${{ secrets.DOCKER_CHARTS_USERNAME }} registry-1.docker.io --password-stdin
|
|
helm push actions/actions-${GITHUB_REF#refs/tags/v}.tgz oci://registry-1.docker.io/giteacharts
|
|
helm registry logout registry-1.docker.io
|
|
|
|
- name: aws credential configure
|
|
uses: https://github.com/aws-actions/configure-aws-credentials@v5
|
|
with:
|
|
aws-access-key-id: ${{ secrets.AWS_KEY_ID }}
|
|
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
aws-region: ${{ secrets.AWS_REGION }}
|
|
|
|
- name: Copy files to S3 and clear cache
|
|
run: |
|
|
aws s3 sync actions/ s3://${{ secrets.AWS_S3_BUCKET}}/charts/
|