Check and update the version of a Helm chart regarding a given GitHub repository
626
This script is used to check and update the version of a Helm chart regarding a given GitHub repository.
./check-update-chart.sh \
--helm-repo <HELM_REPO> \
--github-repo <GITHUB_REPO> \
--chart <CHART_PATH>
The script first checks the current application version of the chart from a given Helm repository
and the latest application version from a given GitHub repository. If the current application version
is not up-to-date, the script updates the appVersion and version fields in the Chart.yaml file.
jqyq| Parameter | Description | Required |
|---|---|---|
--helm-repo | The Helm repository where the chart is hosted. | Yes |
--github-repo | The GitHub repository where the Docker image is hosted. | Yes |
--chart | The path to the local copy of the chart to check. (Default: /apps) | No |
Parameters can be omitted by using environment variables:
HELM_REPOfor--helm-repoGITHUB_REPOfor--github-repoCHART_PATHfor--chart
A Dockerfile is provided to run the script in a Docker container. The Docker image is based
on alpine/helm:3.13.3 and adds jq and yq.
docker run alphayax/chart-updater \
--helm-repo "oci://registry-1.docker.io/alphayax/medusa" \
--github-repo "linuxserver/docker-medusa" \
--chart "/"
docker run \
-e HELM_REPO="oci://registry-1.docker.io/alphayax/medusa" \
-e GITHUB_REPO="linuxserver/docker-medusa" \
-e CHART_PATH="/" \
alphayax/chart-updater
Content type
Image
Digest
sha256:9e83423b8…
Size
33.8 MB
Last updated
over 2 years ago
docker pull alphayax/chart-updater