mirror of
https://github.com/casjaysdevdocker/gitea
synced 2024-11-24 05:23:06 -05:00
🗃️ 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:
parent
7483b1b11a
commit
b8e35342e9
@ -11,7 +11,7 @@ runner:
|
|||||||
# Where to store the registration result.
|
# Where to store the registration result.
|
||||||
file: /config/act_runner/runners
|
file: /config/act_runner/runners
|
||||||
# Execute how many tasks concurrently at the same time.
|
# Execute how many tasks concurrently at the same time.
|
||||||
capacity: 1
|
capacity: 5
|
||||||
# Extra environment variables to run jobs.
|
# Extra environment variables to run jobs.
|
||||||
envs:
|
envs:
|
||||||
A_TEST_ENV_NAME_1: a_test_env_value_1
|
A_TEST_ENV_NAME_1: a_test_env_value_1
|
||||||
|
@ -5,7 +5,7 @@ log:
|
|||||||
|
|
||||||
host:
|
host:
|
||||||
# The parent directory of a job's working directory.
|
# The parent directory of a job's working directory.
|
||||||
workdir_parent: 'REPLACE_RUNNER_HOME'
|
workdir_parent: 'REPLACE_RUNNER_TEMP'
|
||||||
|
|
||||||
runner:
|
runner:
|
||||||
# Where to store the registration result.
|
# 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).
|
# And other options to be used when the container is started (eg, --add-host=my.gitea.url:host-gateway).
|
||||||
options:
|
options:
|
||||||
# The parent directory of a job's working directory.
|
# 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
|
# Volumes (including bind mounts) can be mounted to containers. Glob syntax is supported, see https://github.com/gobwas/glob
|
||||||
valid_volumes:
|
valid_volumes:
|
||||||
- '**'
|
- '**'
|
||||||
|
@ -266,6 +266,7 @@ EOF
|
|||||||
echo "RUNNER_AUTH_TOKEN has been set: trying to register $RUNNER_NAME"
|
echo "RUNNER_AUTH_TOKEN has been set: trying to register $RUNNER_NAME"
|
||||||
if [ ! -f "$RUNNER_HOME/runners" ]; then
|
if [ ! -f "$RUNNER_HOME/runners" ]; then
|
||||||
cp -Rf "$CONF_DIR/multi.yaml" "$RUNNER_HOME/$RUNNER_NAME.yaml"
|
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"
|
__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
|
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=$?
|
exitStatus=$?
|
||||||
|
Loading…
Reference in New Issue
Block a user