Commit e90e8574 authored by Seblu's avatar Seblu
Browse files

CI: kill ssh-agent when shell exits

parent 774de646
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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: