[drone-ci]: add deploy

This commit is contained in:
Jesús
2021-12-23 14:47:56 -05:00
parent 4547c3cb61
commit 9ad16fd3cc
2 changed files with 71 additions and 3 deletions

22
devscripts/comments.bash Normal file
View File

@@ -0,0 +1,22 @@
#!/bin/bash
# Prepare SSH
home="/root"
mkdir -p "$home/.ssh"
printf "StrictHostKeyChecking no\n" > "$home/.ssh/config"
chmod 0700 "$home/.ssh/config"
keyfile="$home/.ssh/id_rsa"
echo "$SSH_KEY" | grep -q "ssh-ed25519"
if [ $? -eq 0 ]; then
printf "Using ed25519 based key\n"
keyfile="$home/.ssh/id_ed25519"
fi
echo "$SSH_KEY" > $keyfile
chmod 0600 $keyfile
# pull comments
git clone git@git.conocimientoslibres.ga:cl-syscomment.git ./content/comments