Skip to content

Commit af30b64

Browse files
committed
ci(docker): fix env vars
1 parent 42dc5d0 commit af30b64

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

deployment/docker/runner/runner-wrapper

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@ fi
1616
echoerr "Starting semaphore runner"
1717
if test "$#" -ne 1; then
1818
if [ -n "${SEMAPHORE_RUNNER_REGISTRATION_TOKEN:-}" ]; then
19+
20+
if [ -z "${SEMAPHORE_RUNNER_TOKEN:-}" ] && [ -z "${SEMAPHORE_RUNNER_TOKEN_FILE:-}" ]; then
21+
export SEMAPHORE_RUNNER_TOKEN_FILE="${SEMAPHORE_TMP_PATH}/runner_token.txt"
22+
fi
23+
1924
exec /usr/local/bin/semaphore runner start --no-config --register
2025
else
2126
exec /usr/local/bin/semaphore runner start --no-config

0 commit comments

Comments
 (0)