mirror of
https://gitlab.com/megazordpobeda/DataRush.git
synced 2026-05-22 23:17:09 +00:00
well
This commit is contained in:
+4
-3
@@ -62,9 +62,10 @@ deploy:
|
||||
- apk add --no-cache openssh-client
|
||||
script:
|
||||
- mkdir -p ~/.ssh && chmod 700 ~/.ssh
|
||||
- printf "%s" "$SSH_PRIVATE_KEY_BASE64" | base64 -d -i > ~/.ssh/id_rsa
|
||||
- chmod 600 ~/.ssh/id_rsa
|
||||
- ssh-keyscan -H "$SSH_HOST" >> ~/.ssh/known_hosts
|
||||
- echo -e "Host *\n\tStrictHostKeyChecking no\n\n" > ~/.ssh/config && chmod 600 ~/.ssh/config
|
||||
- echo "$SSH_PRIVATE_KEY_BASE64" | base64 -d > ~/.ssh/id_rsa && chmod 400 ~/.ssh/id_rsa
|
||||
- ssh-agent sh -c "ssh-add ~/.ssh/id_rsa"
|
||||
- ssh-keyscan -H "$SSH_HOST"
|
||||
- scp -C -r infrastructure/ compose.yaml "$SSH_ADDRESS":~/deploy/
|
||||
- ssh "$SSH_ADDRESS" << 'EOF'
|
||||
set -e
|
||||
|
||||
Reference in New Issue
Block a user