Skip to content
Snippets Groups Projects
Commit abcafc1a authored by Elisabethein's avatar Elisabethein
Browse files

deploy to server in pipeline (fixed IP) #127

parent 9bea97fd
No related branches found
No related tags found
No related merge requests found
...@@ -91,7 +91,11 @@ deploy: ...@@ -91,7 +91,11 @@ deploy:
- mkdir -p ~/.ssh - mkdir -p ~/.ssh
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa - echo "$SSH_PRIVATE_KEY" | tr -d '\r' > ~/.ssh/id_rsa
- chmod 600 ~/.ssh/id_rsa - chmod 600 ~/.ssh/id_rsa
- echo "SSH private key content:"
- cat ~/.ssh/id_rsa
- ssh-keyscan -H $SERVER_IP >> ~/.ssh/known_hosts - ssh-keyscan -H $SERVER_IP >> ~/.ssh/known_hosts
- echo "Known hosts file content:"
- cat ~/.ssh/known_hosts
- eval $(ssh-agent -s) - eval $(ssh-agent -s)
- echo "$SSH_PRIVATE_KEY_PASS" | ssh-add ~/.ssh/id_rsa - echo "$SSH_PRIVATE_KEY_PASS" | ssh-add ~/.ssh/id_rsa
script: script:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment