From ae1424b7cd3664ea2b7ef34ad1cae24a287f6b3b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Tue, 15 Jan 2019 21:26:31 +0100 Subject: [PATCH] CI: kill ssh-agent when shell exits --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index d4f3aa0..48a42ec 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: -- GitLab