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