mirror of
https://github.com/Aviortheking/Blog_IMIE.git
synced 2025-04-23 19:32:15 +00:00
-e ssh
This commit is contained in:
parent
6e0d4a6d15
commit
120f12c9cd
@ -1,11 +1,12 @@
|
|||||||
image: dblaci/ubuntu-ssh-rsync
|
image: dblaci/ubuntu-ssh-rsync
|
||||||
|
|
||||||
before_script:
|
before_script:
|
||||||
- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
|
#- which ssh-agent || ( apt-get update -y && apt-get install openssh-client -y )
|
||||||
- eval $(ssh-agent -s)
|
- eval $(ssh-agent -s)
|
||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
|
- ssh-keyscan 35.180.10.123 >> ~/.ssh/known_hosts
|
||||||
|
|
||||||
deploy_to_webserver:
|
deploy_to_webserver:
|
||||||
stage: deploy
|
stage: deploy
|
||||||
|
Loading…
x
Reference in New Issue
Block a user