update config for container-in-container builds
This commit is contained in:
parent
cb2d88c948
commit
debe5f5092
2 changed files with 5 additions and 5 deletions
|
@ -4,7 +4,7 @@ Description=Rebuild Forgejo Actions containers
|
||||||
[Timer]
|
[Timer]
|
||||||
OnCalendar=weekly
|
OnCalendar=weekly
|
||||||
Persistent=true
|
Persistent=true
|
||||||
RandomizedDelaySec=10
|
RandomizedDelaySec=10s
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
|
|
@ -10,9 +10,8 @@ runner:
|
||||||
# Execute how many tasks concurrently at the same time.
|
# Execute how many tasks concurrently at the same time.
|
||||||
capacity: 1
|
capacity: 1
|
||||||
# Extra environment variables to run jobs.
|
# Extra environment variables to run jobs.
|
||||||
# envs:
|
envs:
|
||||||
# A_TEST_ENV_NAME_1: a_test_env_value_1
|
BUILDAH_ISOLATION: chroot # only possible way to isolate container builds within a container
|
||||||
# A_TEST_ENV_NAME_2: a_test_env_value_2
|
|
||||||
# Extra environment variables to run jobs from a file.
|
# Extra environment variables to run jobs from a file.
|
||||||
# It will be ignored if it's empty or the file doesn't exist.
|
# It will be ignored if it's empty or the file doesn't exist.
|
||||||
# env_file: .env
|
# env_file: .env
|
||||||
|
@ -68,7 +67,8 @@ container:
|
||||||
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
|
# Whether to use privileged mode or not when launching task containers (privileged mode is required for Docker-in-Docker).
|
||||||
privileged: false
|
privileged: false
|
||||||
# And other options to be used when the container is started (eg, --add-host=my.forgejo.url:host-gateway).
|
# And other options to be used when the container is started (eg, --add-host=my.forgejo.url:host-gateway).
|
||||||
options: "--cpus=1 --memory=1g"
|
# /dev/fuse is needed for the buildah overlayfs storage backend for container builds
|
||||||
|
options: "--cpus=1 --memory=1g --device=/dev/fuse"
|
||||||
# The parent directory of a job's working directory.
|
# The parent directory of a job's working directory.
|
||||||
# If it's empty, /workspace will be used.
|
# If it's empty, /workspace will be used.
|
||||||
workdir_parent:
|
workdir_parent:
|
||||||
|
|
Loading…
Add table
Reference in a new issue