Commit ae1424b7 authored by Seblu's avatar Seblu

CI: kill ssh-agent when shell exits

parent d7e9f21d
Pipeline #140 passed with stage
in 17 seconds
......@@ -14,6 +14,7 @@ commitpkg:
stage: deploy
script:
- eval $(ssh-agent -s)
- trap 'kill $SSH_AGENT_PID' 0
- echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null
- seblu-push
only:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment