From 8bb89e3b6e0919d3255b112e5830691225c395f8 Mon Sep 17 00:00:00 2001 From: Denis Baryshev Date: Tue, 23 Nov 2021 12:18:48 +0300 Subject: [PATCH] fix runner re-registration issue (#96) --- entrypoint.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 52ef6b60..ea3f4138 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -18,5 +18,8 @@ fi sudo install-runner -./config.sh --unattended --replace --url "${RUNNER_URL}" --token "${RUNNER_TOKEN}" +# Reconfigure from the clean state in case of runner failures/restarts +./config.sh remove --token "${RUNNER_TOKEN}" +./config.sh --unattended --url "${RUNNER_URL}" --token "${RUNNER_TOKEN}" + exec "./run.sh" "${RUNNER_ARGS}"