File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,13 @@ EXTRA_ARGS=""
1616if [[ ! -z " ${GITEA_RUNNER_LABELS} " ]]; then
1717 EXTRA_ARGS=" ${EXTRA_ARGS} --labels ${GITEA_RUNNER_LABELS} "
1818fi
19+ if [[ ! -z " ${GITEA_RUNNER_EPHEMERAL} " ]]; then
20+ EXTRA_ARGS=" ${EXTRA_ARGS} --ephemeral"
21+ fi
22+ RUN_ARGS=" "
23+ if [[ ! -z " ${GITEA_RUNNER_ONCE} " ]]; then
24+ RUN_ARGS=" ${RUN_ARGS} --once"
25+ fi
1926
2027# In case no token is set, it's possible to read the token from a file, i.e. a Docker Secret
2128if [[ -z " ${GITEA_RUNNER_REGISTRATION_TOKEN} " ]] && [[ -f " ${GITEA_RUNNER_REGISTRATION_TOKEN_FILE} " ]]; then
5461unset GITEA_RUNNER_REGISTRATION_TOKEN
5562unset GITEA_RUNNER_REGISTRATION_TOKEN_FILE
5663
57- exec act_runner daemon ${CONFIG_ARG}
64+ exec act_runner daemon ${CONFIG_ARG} ${RUN_ARGS}
You can’t perform that action at this time.
0 commit comments