From 0978237d5c56c219c69bb9c766829df0fa60d212 Mon Sep 17 00:00:00 2001 From: uazo <29201891+uazo@users.noreply.github.com> Date: Fri, 18 Feb 2022 16:08:27 +0100 Subject: [PATCH] add ephemeral to runner config --- images/github-runner/startup.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/images/github-runner/startup.sh b/images/github-runner/startup.sh index 64dac26..35ebd84 100644 --- a/images/github-runner/startup.sh +++ b/images/github-runner/startup.sh @@ -49,7 +49,8 @@ echo "Registering runner ${runner_id}" --allowedauthorslist "${ALLOWEDAUTHORSLIST}" \ --unattended \ --replace \ - --disableupdate + --disableupdate \ + --ephemeral trap 'remove_runner; exit 130' SIGINT trap 'remove_runner; exit 143' SIGTERM @@ -59,5 +60,5 @@ for f in runsvc.sh RunnerService.js; do mv {patched,bin}/${f} done -./bin/runsvc.sh --ephemeral "$*" +./bin/runsvc.sh --once "$*" remove_runner