From ea7a8808653df82895e7a65befb8a93f2ab6c926 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Luttringer?= Date: Tue, 15 Jan 2019 21:24:18 +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 04f780c..0131e50 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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: -- GitLab