updated gitlab-ci

This commit is contained in:
Solomon Laing 2021-04-01 20:25:42 +10:30
parent 672614cc19
commit f6e9a1f38d

View File

@ -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: