add key from secrets for deploy
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Pavel 2023-11-12 23:01:58 +03:00
parent 0c5e4be2f2
commit 8be4d20038

View File

@ -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