Modify Pipeline to Support SSH Keys
Some checks reported warnings
Build Hugo Site / build (push) Has been cancelled
Some checks reported warnings
Build Hugo Site / build (push) Has been cancelled
This commit is contained in:
parent
fc62582dd8
commit
841946f9a1
@ -23,8 +23,8 @@ jobs:
|
||||
run: |
|
||||
hugo \
|
||||
--minify
|
||||
|
||||
- name: pre-reqs
|
||||
run: apt update; apt install -y sshpass
|
||||
- name: Deploy to Server
|
||||
run: sshpass -p "M0dderStella" scp -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r public/* root@10.0.1.15:/var/www/html/
|
||||
run: |
|
||||
echo "$SSH_KEY" | tr -d '\r' > ~/.ssh/id_rsa
|
||||
chmod 600 ~/.ssh/id_rsa
|
||||
scp -i ~/.ssh/id_rsa -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null -r public/* bhays@10.0.1.15:/var/www/html/
|
Loading…
Reference in New Issue
Block a user