mirror of
https://github.com/casjaysdevdocker/gitea
synced 2024-11-21 17:23:06 -05:00
🗃️ Committing everything that changed 🗃️
rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
parent
cde984a0e7
commit
b5ffc23142
@ -229,20 +229,20 @@ EOF
|
||||
# Settings for the default gitea runner
|
||||
RUNNER_NAME="runner-1"
|
||||
RUNNER_HOME="$CONF_DIR/multi/\$RUNNER_NAME"
|
||||
RUNNER_LABELS="$RUNNER_LABELS"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$SYS_AUTH_TOKEN}"
|
||||
RUNNER_HOSTNAME="https://${HOSTNAME:-127.0.0.1:8000}"
|
||||
RUNNER_REGISTER_URL="http://127.0.0.1:8000"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$SYS_AUTH_TOKEN}"
|
||||
RUNNER_LABELS="$RUNNER_LABELS"
|
||||
|
||||
EOF
|
||||
cat <<EOF >"$CONF_DIR/reg/runner-2.reg"
|
||||
# Settings for the default local runner
|
||||
RUNNER_NAME="runner-2"
|
||||
RUNNER_HOME="$CONF_DIR/multi/\$RUNNER_NAME"
|
||||
RUNNER_LABELS="$RUNNER_LABELS"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$SYS_AUTH_TOKEN}"
|
||||
RUNNER_HOSTNAME="https://${HOSTNAME:-127.0.0.1:8000}"
|
||||
RUNNER_REGISTER_URL="http://127.0.0.1:8000"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$SYS_AUTH_TOKEN}"
|
||||
RUNNER_LABELS="$RUNNER_LABELS"
|
||||
|
||||
EOF
|
||||
fi
|
||||
@ -250,6 +250,10 @@ EOF
|
||||
[ -f "$runner" ] && . "$runner"
|
||||
RUNNER_NAME="${RUNNER_NAME:-$(basename "${runner//.reg/}")}"
|
||||
RUNNER_HOME="${RUNNER_HOME:-$CONF_DIR/multi/$RUNNER_NAME}"
|
||||
RUNNER_HOSTNAME="https://${RUNNER_HOSTNAME:-$HOSTNAME}"
|
||||
RUNNER_REGISTER_URL="${RUNNER_REGISTER_URL:-http://127.0.0.1:8000}"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$SYS_AUTH_TOKEN}"
|
||||
RUNNER_LABELS="${RUNNER_LABELS:-act_runner}"
|
||||
while :; do
|
||||
[ -n "$RUNNER_NAME" ] && [ -n "$RUNNER_HOME" ] || break
|
||||
[ -f "$RUN_DIR/act_runner.$RUNNER_NAME.pid" ] && break
|
||||
|
Loading…
Reference in New Issue
Block a user