updated gitlab-ci
This commit is contained in:
parent
672614cc19
commit
f6e9a1f38d
@ -16,6 +16,8 @@ deploy-job:
|
|||||||
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add -
|
||||||
- mkdir -p ~/.ssh
|
- mkdir -p ~/.ssh
|
||||||
- chmod 700 ~/.ssh
|
- chmod 700 ~/.ssh
|
||||||
|
- echo "$SSH_KNOWN_HOSTS" >> ~/.ssh/known_hosts
|
||||||
|
- chmod 644 ~/.ssh/known_hosts
|
||||||
script:
|
script:
|
||||||
- ssh "$Live_Server_User"@"$Live_Server_Ip" -p 10122 "touch test"
|
- ssh "$Live_Server_User"@"$Live_Server_Ip" -p 10122 "touch test"
|
||||||
# script:
|
# script:
|
||||||
|
|||||||
Reference in New Issue
Block a user