hailmary commit
This commit is contained in:
parent
fb8d824fd8
commit
ac39fa2006
1 changed files with 4 additions and 2 deletions
|
@ -62,6 +62,8 @@ if [[ "${SKIP_WAIT}" != "true" ]]; then
|
||||||
sleep 10
|
sleep 10
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
FORGEJO_URL="${FORGEJO_URL:-http://forgejo:3000}"
|
||||||
|
|
||||||
# Try to register the runner
|
# Try to register the runner
|
||||||
if [[ ! -s "${RUNNER__runner__FILE}" ]]; then
|
if [[ ! -s "${RUNNER__runner__FILE}" ]]; then
|
||||||
touch ${RUNNER__runner__FILE}
|
touch ${RUNNER__runner__FILE}
|
||||||
|
@ -72,14 +74,14 @@ if [[ ! -s "${RUNNER__runner__FILE}" ]]; then
|
||||||
while [[ $success -eq 0 ]] && [[ $try -lt ${MAX_REG_ATTEMPTS:-10} ]]; do
|
while [[ $success -eq 0 ]] && [[ $try -lt ${MAX_REG_ATTEMPTS:-10} ]]; do
|
||||||
if [[ -n "${FORGEJO_SECRET}" ]]; then
|
if [[ -n "${FORGEJO_SECRET}" ]]; then
|
||||||
run_command forgejo-runner create-runner-file --connect \
|
run_command forgejo-runner create-runner-file --connect \
|
||||||
--instance "${FORGEJO_URL:-http://forgejo:3000}" \
|
--instance "${FORGEJO_URL}" \
|
||||||
--name "${RUNNER__NAME:-$(hostname)}" \
|
--name "${RUNNER__NAME:-$(hostname)}" \
|
||||||
--secret "${FORGEJO_SECRET}" \
|
--secret "${FORGEJO_SECRET}" \
|
||||||
${CONFIG_ARG} \
|
${CONFIG_ARG} \
|
||||||
${EXTRA_ARGS} 2>&1 | tee /tmp/reg.log
|
${EXTRA_ARGS} 2>&1 | tee /tmp/reg.log
|
||||||
else
|
else
|
||||||
run_command forgejo-runner register \
|
run_command forgejo-runner register \
|
||||||
--instance "${FORGEJO_URL:-http://forgejo:3000}" \
|
--instance "${FORGEJO_URL}" \
|
||||||
--name "${RUNNER__NAME:-$(hostname)}" \
|
--name "${RUNNER__NAME:-$(hostname)}" \
|
||||||
--token "${RUNNER_TOKEN}" \
|
--token "${RUNNER_TOKEN}" \
|
||||||
--no-interactive \
|
--no-interactive \
|
||||||
|
|
Loading…
Reference in a new issue