Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Git tags for recent versions of all Helm/Kustomize apps #120

Open
gw0 opened this issue Jan 25, 2022 · 0 comments
Open

Add Git tags for recent versions of all Helm/Kustomize apps #120

gw0 opened this issue Jan 25, 2022 · 0 comments

Comments

@gw0
Copy link

gw0 commented Jan 25, 2022

In order to demonstrate how you could pin an ArgoCD app to a specific version when using Git (e.g. by referencing targetRevision: charts/helm-guestbook/0.1.0 instead of HEAD), it would make sense that his repository contains Git tags for recent versions of all Helm/Kustomize app.

Snippet to add Git tags for latest version changes to Helm charts:

COMMIT=$(git log -n 1 --pretty=format:%H -- "$CHART_DIR/Chart.yaml")
VERSION=$(awk '/^version: *(.+)$/ { print $2; }' "$CHART_DIR/Chart.yaml")
TAG="charts/$CHART_NAME/$VERSION"
git tag -f "$TAG" "$COMMIT"
git push --tags
Gaic4o pushed a commit to Gaic4o/argocd-example-apps that referenced this issue Aug 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant