From 89140a1e6c8c7d01377880f96a6ace3d41c5250b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Tue, 15 Jan 2019 21:26:14 +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