🗃️ Committing everything that changed 🗃️

rootfs/tmp/etc/act_runner/daemon.yaml
rootfs/tmp/etc/act_runner/multi.yaml
rootfs/usr/local/etc/docker/init.d/zz-act_runner.sh
This commit is contained in:
casjay 2024-08-11 16:08:42 -04:00
parent 7483b1b11a
commit b8e35342e9
Signed by untrusted user who does not match committer: jason
GPG Key ID: 1AB309F42A764145
3 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ runner:
# Where to store the registration result.
file: /config/act_runner/runners
# Execute how many tasks concurrently at the same time.
capacity: 1
capacity: 5
# Extra environment variables to run jobs.
envs:
A_TEST_ENV_NAME_1: a_test_env_value_1

View File

@ -5,7 +5,7 @@ log:
host:
# The parent directory of a job's working directory.
workdir_parent: 'REPLACE_RUNNER_HOME'
workdir_parent: 'REPLACE_RUNNER_TEMP'
runner:
# Where to store the registration result.
@ -58,7 +58,7 @@ container:
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
options:
# The parent directory of a job's working directory.
workdir_parent: 'REPLACE_RUNNER_HOME/volumes'
workdir_parent: 'REPLACE_RUNNER_TEMP/volumes'
# Volumes (including bind mounts) can be mounted to containers. Glob syntax is supported, see https://github.com/gobwas/glob
valid_volumes:
- '**'

View File

@ -266,6 +266,7 @@ EOF
echo "RUNNER_AUTH_TOKEN has been set: trying to register $RUNNER_NAME"
if [ ! -f "$RUNNER_HOME/runners" ]; then
cp -Rf "$CONF_DIR/multi.yaml" "$RUNNER_HOME/$RUNNER_NAME.yaml"
__replace "REPLACE_RUNNER_TEMP" "$TMP_DIR/$RUNNER_NAME" "$RUNNER_HOME/$RUNNER_NAME.yaml"
__replace "REPLACE_RUNNER_HOME" "$RUNNER_HOME" "$RUNNER_HOME/$RUNNER_NAME.yaml"
act_runner register --config "$RUNNER_HOME/$RUNNER_NAME.yaml" --labels "$RUNNER_LABELS" --name "$RUNNER_NAME" --instance "http://$CONTAINER_IP4_ADDRESS:8000" --token "$RUNNER_AUTH_TOKEN" --no-interactive && exitStatus=0 || exitStatus=1
exitStatus=$?