Loading .gitlab-ci.yml +5 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,11 @@ commitpkg: stage: deploy script: - eval $(ssh-agent -s) - trap 'kill $SSH_AGENT_PID' 0 # - trap "kill $SSH_AGENT_PID" 0 # trap is broken in gitlab runner, see: # https://gitlab.com/gitlab-org/gitlab-runner/issues/3009 # use a workaournd with sleep and kill: - sleep 300 && kill "$SSH_AGENT_PID" & disown - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - seblu-push only: Loading Loading
.gitlab-ci.yml +5 −1 Original line number Diff line number Diff line Loading @@ -19,7 +19,11 @@ commitpkg: stage: deploy script: - eval $(ssh-agent -s) - trap 'kill $SSH_AGENT_PID' 0 # - trap "kill $SSH_AGENT_PID" 0 # trap is broken in gitlab runner, see: # https://gitlab.com/gitlab-org/gitlab-runner/issues/3009 # use a workaournd with sleep and kill: - sleep 300 && kill "$SSH_AGENT_PID" & disown - echo "$SSH_PRIVATE_KEY" | tr -d '\r' | ssh-add - > /dev/null - seblu-push only: Loading