chore: update forgejo-runner to 12.9 #32

Open
stevensting wants to merge 2 commits from runner-12.9 into main
4 changed files with 22 additions and 10 deletions

View File

@ -13,4 +13,9 @@ RUNNER_CAPACITY=1
RUNNER_TIMEOUT=3h
# Set to 'host', to use the host network or any other. By using 'default', the runner gets configured to use the internal network of its own stack, so the action can access the docker socket proxy.
#CONTAINER_NETWORK=default
#CONTAINER_NETWORK="default"
# Configuration for runner registration with the host. For more information see https://forgejo.org/docs/latest/admin/actions/registration/#interactive-registration
RUNNER_TOKEN_VERSION=v1
FORGEJO_HOST=https://codeberg.org
FORGEJO_RUNNER_UUID=4c01233f-ce1d-41dd-b499-2f958376d683

View File

@ -2,7 +2,7 @@ version: '3.8'
services:
app:
image: 'code.forgejo.org/forgejo/runner:12.7.1'
image: 'code.forgejo.org/forgejo/runner:12.9.0'
environment:
- DOCKER_HOST=tcp://socket-proxy:2375
configs:
@ -21,9 +21,11 @@ services:
ports:
- "44847:44847"
entrypoint: /custom-entrypoint.sh
secrets:
- runner_token
socket-proxy:
image: lscr.io/linuxserver/socket-proxy:3.2.13
image: lscr.io/linuxserver/socket-proxy:3.2.17
environment:
- PROXY_READ_TIMEOUT=5000
- ALLOW_START=1
@ -61,6 +63,11 @@ services:
volumes:
data:
secrets:
runner_token:
external: true
name: ${STACK_NAME}_runner_token_${RUNNER_TOKEN_VERSION}
networks:
internal:
attachable: true

View File

@ -80,3 +80,10 @@ host:
# The parent directory of a job's working directory.
# If it's empty, $HOME/.cache/act/ will be used.
workdir_parent:
server:
connections:
forgejo:
url: "{{ env "FORGEJO_HOST" }}"
uuid: "{{ env "FORGEJO_RUNNER_UUID" }}"
token: "{{ secret "runner_token" }}"

View File

@ -5,11 +5,4 @@ set -e
mkdir -p /data
mkdir -p /data/.cache
# Wait for the runner to get registered before starting the forgejo-runner daemon.
while [ ! -s /data/.runner ]
do
echo "The runner was not registered yet. Next try in 5 seconds."
sleep 5
done
forgejo-runner daemon --config /config.yml