From 1cca5f5f572c0f130044a10de673b3f4a064f058 Mon Sep 17 00:00:00 2001 From: Jack Jackson Date: Mon, 8 Jul 2024 23:41:34 -0700 Subject: [PATCH] Pass credentials to `git clone` --- .drone.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.drone.yml b/.drone.yml index 6771814..9450277 100644 --- a/.drone.yml +++ b/.drone.yml @@ -42,6 +42,9 @@ steps: - name: Update Helm Chart image: alpine + environment: + GITEA_PASSWORD: + from_secret: gitea_password commands: # Cannot use `drone/git` plugin because: # * it cannot check out to a different directory @@ -51,7 +54,7 @@ steps: - find . -not -path '.' | xargs rm -rf - find . -not -path '.' - apk add yq git - - git clone https://gitea.scubbo.org/scubbo/helm-charts.git + - git clone https://scubbo:${GITEA_PASSWORD}@gitea.scubbo.org/scubbo/helm-charts.git - cd helm-charts - yq -i '.image.tag = "${DRONE_COMMIT_SHA:0:10}"' charts/edh-elo/values.yaml - git add -A