Repository navigation
ci: lint, validate and publish the chart to GHCR - #2
Merged
Merged
Conversation
Run helm lint, helm template and kubeconform on every pull request. On main push the packaged chart to oci://ghcr.io/cgi-italy-insula-processing/charts unless that version is already published.
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a GitHub Actions workflow (
.github/workflows/chart.yml) that validates, packages and publishes the chart.helm lint --strict,helm templateand kubeconform (strict, Kubernetes 1.34.0) on the rendered manifests, thenhelm package. The.tgzis kept as a run artifact for 14 days. The Argo Workflows CRDs are skipped by kubeconform because no schema is published for them.main: pusheseoepca-<version>.tgztooci://ghcr.io/cgi-italy-insula-processing/charts. Published versions are never overwritten: if theChart.yamlversion is already in the registry, the push is skipped with a warning, and any registry error other than "not found" fails the job.Helm is pinned to v3.22.0. kubeconform v0.8.0 is downloaded and checked against its SHA-256. All actions are pinned to full commit SHAs.
packages: writeis granted only to the publish job, which never runs on pull requests.Also documents installing the chart from the registry in the README.
Test plan
.githuborvalues-*helm show chart oci://ghcr.io/cgi-italy-insula-processing/charts/eoepca --version 1.0.35succeeds