From 5c67a4553794fff5151fb18bf651d62ec91bfc43 Mon Sep 17 00:00:00 2001 From: Philipp Lang Date: Mon, 8 May 2023 20:59:46 +0200 Subject: [PATCH] update drone --- .drone.yml | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/.drone.yml b/.drone.yml index 0cd77e35..306a046b 100644 --- a/.drone.yml +++ b/.drone.yml @@ -144,15 +144,19 @@ steps: branch: master event: push - - name: github-push - image: appleboy/drone-git-push - settings: - branch: master - remote: ssh://git@github.com:zoomyboy/adrema.git - force: true - commit: false - ssh_key: + - name: github push + image: alpine/git + environment: + SSH_KEY: from_secret: github_private_key + commands: + - mkdir $HOME/.ssh + - git config core.sshCommand "ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no" + - echo "$SSH_KEY" + - echo "$SSH_KEY" > $HOME/.ssh/id_rsa + - chmod 600 $HOME/.ssh/id_rsa + - git remote add gh git@github.com:zoomyboy/adrema.git + - git push -f gh HEAD:master when: event: push