updated gitlab-ci

This commit is contained in:
Solomon Laing 2021-04-01 20:31:20 +10:30
parent 2ab5e33e0f
commit 68a5f93c52

View File

@ -16,9 +16,7 @@ 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 - '[[ -f /.dockerenv ]] && echo -e "Host *\n\tStrictHostKeyChecking no\n\n" >> ~/.ssh/config'
- chmod 644 ~/.ssh/known_hosts
- touch test
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: