From 9ef50093df7b2f09fbea2594ca5a43bd83e52a13 Mon Sep 17 00:00:00 2001 From: giles Date: Wed, 18 Oct 2023 18:38:16 +0100 Subject: [PATCH] . --- .drone.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.drone.yml b/.drone.yml index 0ecba6f..b8cb3be 100644 --- a/.drone.yml +++ b/.drone.yml @@ -101,10 +101,17 @@ steps: branch: - master image: alpine/git:latest + environment: + SSH_KEY: + from_secret: SSH_KEY commands: + - git config credential.helper '!f() { sleep 1; echo "username=${GIT_USER}"; echo "password=${GIT_PASSWORD}"; }; f' + - git fetch origin + - git checkout deployed - git add -A - git commit -m '$${DRONE_COMMIT_MESSAGE}' - git remote -v + - git push origin deployed volumes: - name: dockersock path: /var/run