From 8be4d2003889ee34e5d9389124ca6d6685af7deb Mon Sep 17 00:00:00 2001 From: Neur0toxine Date: Sun, 12 Nov 2023 23:01:58 +0300 Subject: [PATCH] add key from secrets for deploy --- .drone.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.drone.yml b/.drone.yml index 450eb52..c536fa7 100644 --- a/.drone.yml +++ b/.drone.yml @@ -10,8 +10,14 @@ steps: - make all - name: release image: alpine:latest + environment: + SSH_KEY: + from_secret: ssh_key commands: - apk add --no-cache git openssh + - echo "$SSH_KEY" > $HOME/.ssh/id_rsa + - chmod 600 $HOME/.ssh/known_hosts + - ssh-keyscan -H git.neur0tx.site > ~/.ssh/known_hosts 2> /dev/null - cd .pub - git clone --filter=tree:0 git@git.neur0tx.site:Neur0toxine/neur0tx.site.git - cd neur0tx.site