From f0bdddd0605e0664916e7550182984676f31f430 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Mon, 1 Jul 2024 22:15:09 -0700 Subject: [PATCH] Experiment with auto-helm-update --- .drone.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 523520f..5a18804 100644 --- a/.drone.yml +++ b/.drone.yml @@ -26,4 +26,16 @@ steps: platforms: - linux/arm64 - linux/amd64 - # TODO - use kustomize to update the deployed image. \ No newline at end of file + - name: Checkout Helm Chart + image: drone/git + settings: + remote: gitea.scubbo.org/scubbo/helm-charts + - name: Update Helm Chart + image: alpine + commands: + - apk add yq git + - cd helm-charts + - yq -i '.image.tag = "${DRONE_COMMIT_SHA:0:10}"' charts/edh-elo/values.yaml + - git add -A + - git commit -m "Update EDH ELO commit to "${DRONE_COMMIT_SHA:0:10}" + - git push \ No newline at end of file