We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d22eea commit 3f7c80eCopy full SHA for 3f7c80e
1 file changed
entrypoint.sh
@@ -8,16 +8,6 @@ log() {
8
log "Packing workspace into archive to transfer onto remote machine."
9
tar cjvf /tmp/workspace.tar.bz2 --exclude .git .
10
11
-log "Launching ssh agent."
12
-eval `ssh-agent -s`
13
-cleanup() {
14
- log "Killing ssh agent."
15
- ssh-agent -k
16
-}
17
-trap cleanup EXIT
18
-
19
-ssh-add <(echo "$SSH_PRIVATE_KEY")
20
21
remote_command=<< EOF
22
set -e
23
@@ -45,6 +35,7 @@ docker-compose up -d
45
35
EOF
46
36
47
37
echo ">> [local] Connecting to remote host."
48
-ssh -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
49
- "$SSH_USER@$SSH_HOST:$SSH_PORT" \
38
+ssh -i <(echo "$SSH_PRIVATE_KEY") \
39
+ -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null \
40
+ "$SSH_USER@$SSH_HOST" -p "$SSH_PORT" \
50
41
"$remote_command"
0 commit comments