Skip to content
Snippets Groups Projects
Commit ea7a8808 authored by Seblu's avatar Seblu
Browse files

CI: kill ssh-agent when shell exits

parent e1917356
No related branches found
No related tags found
No related merge requests found
......@@ -19,6 +19,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:
......
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