From 519d456b840f1ca81494fe28fb00e8f9a1ee9f03 Mon Sep 17 00:00:00 2001 From: eric Liu Date: Mon, 18 Sep 2023 02:44:50 +0000 Subject: [PATCH] Update .drone.yml --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index 117794c..4f180a6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,10 +4,16 @@ name: default steps: - name: git-clone image: alpine/git + environment: + SSH_KEY: + from_secret: ssh_key volumes: - name: output path: /output commands: + - echo "$SSH_KEY" > $HOME/.ssh/id_rsa + - chmod 600 $HOME/.ssh/known_hosts + - ssh-keyscan -H git@git.ericxliu.me > ~/.ssh/known_hosts 2> /dev/null - git clone --branch gitea-pages git@git.ericxliu.me:eric/ericxliu-me.git /output - name: build image: plugins/hugo