mirror of
https://github.com/casjaysdevdocker/gitea
synced 2024-11-21 05:23:05 -05:00
🗃️ Committing everything that changed 🗃️
All checks were successful
release-tag / release-image (push) Successful in 4m12s
All checks were successful
release-tag / release-image (push) Successful in 4m12s
rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
parent
a181afe348
commit
6e8428f02c
@ -202,6 +202,7 @@ ADDITIONAL_CONFIG_DIRS=""
|
||||
CMD_ENV=""
|
||||
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
|
||||
# Overwrite based on file/directory
|
||||
RUNNER_IP_ADDRESS="$(__get_ip4)"
|
||||
RUNNER_CACHE_HOST="${RUNNER_CACHE_HOST:-localhost}"
|
||||
RUNNER_CACHE_PORT="${RUNNER_CACHE_PORT:-$SERVICE_PORT}"
|
||||
RUNNER_MULTI_DIR="${RUNNER_MULTI_DIR:-$CONF_DIR/multi}"
|
||||
@ -266,8 +267,8 @@ EOF
|
||||
# Settings for the default gitea runner
|
||||
RUNNER_NAME="runner-1"
|
||||
RUNNER_HOME="$RUNNER_MULTI_DIR/\$RUNNER_NAME"
|
||||
RUNNER_HOSTNAME="http://${INSTANCE_HOSTNAME:-127.0.0.1:$GITEA_PORT}"
|
||||
RUNNER_REGISTER_URL="http://127.0.0.1:$GITEA_PORT"
|
||||
RUNNER_HOSTNAME="http://${INSTANCE_HOSTNAME:-$RUNNER_IP_ADDRESS:$GITEA_PORT}"
|
||||
RUNNER_REGISTER_URL="http://$RUNNER_IP_ADDRESS:$GITEA_PORT"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$SYS_AUTH_TOKEN}"
|
||||
RUNNER_LABELS="$RUNNER_LABELS"
|
||||
|
||||
@ -278,8 +279,8 @@ EOF
|
||||
# Settings for the default local runner
|
||||
RUNNER_NAME="runner-2"
|
||||
RUNNER_HOME="$RUNNER_MULTI_DIR/\$RUNNER_NAME"
|
||||
RUNNER_HOSTNAME="http://${INSTANCE_HOSTNAME:-127.0.0.1:$GITEA_PORT}"
|
||||
RUNNER_REGISTER_URL="http://127.0.0.1:$GITEA_PORT"
|
||||
RUNNER_HOSTNAME="http://${INSTANCE_HOSTNAME:-$RUNNER_IP_ADDRESS:$GITEA_PORT}"
|
||||
RUNNER_REGISTER_URL="http://$RUNNER_IP_ADDRESS:$GITEA_PORT"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$SYS_AUTH_TOKEN}"
|
||||
RUNNER_LABELS="$RUNNER_LABELS"
|
||||
|
||||
@ -294,7 +295,7 @@ EOF
|
||||
__replace "REPLACE_RUNNER_HOME" "$RUNNER_DEFAULT_HOME" "$RUNNER_DEFAULT_HOME/$RUNNER_CONFIG_NAME"
|
||||
__replace "REPLACE_RUNNER_CACHE_HOST" "$RUNNER_CACHE_HOST" "$RUNNER_DEFAULT_HOME/$RUNNER_CONFIG_NAME"
|
||||
__replace "REPLACE_RUNNER_CACHE_PORT" "$RUNNER_CACHE_PORT" "$RUNNER_DEFAULT_HOME/$RUNNER_CONFIG_NAME"
|
||||
act_runner register --config "$RUNNER_DEFAULT_HOME/$RUNNER_CONFIG_NAME" --labels "$RUNNER_LABELS" --name "gitea" --instance "http://127.0.0.1:$GITEA_PORT" --token "$SYS_AUTH_TOKEN" --no-interactive 2>/dev/stdout >>"$RUNNER_LOG_FILE" &
|
||||
act_runner register --config "$RUNNER_DEFAULT_HOME/$RUNNER_CONFIG_NAME" --labels "$RUNNER_LABELS" --name "gitea" --instance "http://$RUNNER_IP_ADDRESS:$GITEA_PORT" --token "$SYS_AUTH_TOKEN" --no-interactive 2>/dev/stdout >>"$RUNNER_LOG_FILE" &
|
||||
fi
|
||||
for runner in "$CONF_DIR/reg"/*.reg; do
|
||||
echo "Setting up $runner"
|
||||
@ -306,7 +307,7 @@ EOF
|
||||
RUNNER_HOME="${RUNNER_HOME:-$RUNNER_MULTI_DIR/$RUNNER_NAME}"
|
||||
RUNNER_AUTH_TOKEN="${RUNNER_AUTH_TOKEN:-$(__gen_auth_token)}"
|
||||
RUNNER_HOSTNAME="${RUNNER_HOSTNAME:-http://$INSTANCE_HOSTNAME}"
|
||||
RUNNER_REGISTER_URL="${RUNNER_REGISTER_URL:-http://127.0.0.1:$GITEA_PORT}"
|
||||
RUNNER_REGISTER_URL="${RUNNER_REGISTER_URL:-http://$RUNNER_IP_ADDRESS:$GITEA_PORT}"
|
||||
#
|
||||
echo "Initializing $RUNNER_NAME in $RUNNER_HOME"
|
||||
#
|
||||
|
Loading…
Reference in New Issue
Block a user