This commit is contained in:
parent
1ab79d9a1a
commit
9b929627b9
@ -8,7 +8,7 @@ steps:
|
|||||||
image: alpine
|
image: alpine
|
||||||
commands:
|
commands:
|
||||||
- sh compile.sh
|
- sh compile.sh
|
||||||
- apk add openssh
|
- apk add rsync openssh
|
||||||
- sh deploy.sh
|
- sh deploy.sh
|
||||||
environment:
|
environment:
|
||||||
SSH_CONNECTION_STRING:
|
SSH_CONNECTION_STRING:
|
||||||
|
@ -3,7 +3,9 @@
|
|||||||
set -e
|
set -e
|
||||||
|
|
||||||
echo $SSH_KEY | base64 -d >> /tmp/key
|
echo $SSH_KEY | base64 -d >> /tmp/key
|
||||||
chmod -R 0600 /tmp/key
|
|
||||||
scp -o StrictHostKeyChecking=no -i /tmp/key -r dist/* $SSH_CONNECTION_STRING:~
|
|
||||||
|
|
||||||
|
chmod -R 0600 /tmp/key
|
||||||
|
rsync -e "ssh -i /tmp/key -o StrictHostKeyChecking=no" -avz dist/* $SSH_CONNECTION_STRING:~
|
||||||
|
|
||||||
|
echo "finished copying to remote host..."
|
||||||
rm /tmp/key
|
rm /tmp/key
|
||||||
|
Loading…
Reference in New Issue
Block a user