Skip to content

Commit 1e09cbb

Browse files
mucsi96claude
andcommitted
fetch helm chart versions dynamically from repo
Replace hardcoded chart versions with dynamic lookup from the helm repository. Add explicit helm repo add with --force-update to ensure the repo is configured and up-to-date. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent a0dc982 commit 1e09cbb

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

scripts/deploy.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,11 @@ apiClientId=$(az keyvault secret show --vault-name p06-backup --name api-client-
3535
serverLatestTag=$(curl -s "https://registry.hub.docker.com/v2/repositories/mucsi96/postgres-azure-backup-server/tags/" | jq -r '.results | map(select(.name != "latest")) | sort_by(.last_updated) | reverse | .[0].name')
3636
clientLatestTag=$(curl -s "https://registry.hub.docker.com/v2/repositories/mucsi96/postgres-azure-backup-client/tags/" | jq -r '.results | map(select(.name != "latest")) | sort_by(.last_updated) | reverse | .[0].name')
3737

38-
springAppChartVersion=24.0.0 #https://github.com/mucsi96/k8s-helm-charts/releases
39-
clientAppChartVersion=13.0.0 #https://github.com/mucsi96/k8s-helm-charts/releases
40-
41-
4238
echo "Updating Helm repositories..."
39+
helm repo add mucsi96 https://mucsi96.github.io/k8s-helm-charts --force-update
4340

44-
helm repo update
41+
springAppChartVersion=$(helm search repo mucsi96/spring-app --output json | jq -r '.[0].version')
42+
clientAppChartVersion=$(helm search repo mucsi96/client-app --output json | jq -r '.[0].version')
4543

4644
echo "Deploying server: mucsi96/postgres-azure-backup-server:$serverLatestTag to $hostname using spring-app chart $springAppChartVersion"
4745
helm upgrade postgres-azure-backup-server mucsi96/spring-app \

0 commit comments

Comments
 (0)