Switch to forgejo runner
This commit is contained in:
parent
581fcf9ff1
commit
02c8707ac6
5 changed files with 8 additions and 26 deletions
|
@ -1,2 +1,5 @@
|
|||
container:
|
||||
docker_host: '-'
|
||||
options: --userns=host
|
||||
runner:
|
||||
labels: ["debian-12:docker://node:bookworm"]
|
||||
|
|
|
@ -1,19 +1,10 @@
|
|||
[Unit]
|
||||
Requires=podman-container.service
|
||||
After=podman-container.service
|
||||
[Service]
|
||||
ExecStartPre=sleep 5
|
||||
[Container]
|
||||
Image=docker.io/gitea/act_runner
|
||||
Volume=podman-run.volume:/run/podman:U,z
|
||||
Image=code.forgejo.org/forgejo/runner:3.5.1
|
||||
SecurityLabelDisable=true
|
||||
Exec=forgejo-runner daemon -c /etc/act-runner/config.yaml
|
||||
Volume=/run/podman:/run/podman:U
|
||||
Volume=/var/lib/system-config/container-config/act-runner/config.yaml:/etc/act-runner/config.yaml:z,ro
|
||||
Volume=act-runner.volume:/data:U,Z
|
||||
Tmpfs=/root/.cache
|
||||
Environment=CONFIG_FILE=/etc/act-runner/config.yaml
|
||||
Environment=GITEA_INSTANCE_URL=https://git.strypsteen.com
|
||||
Environment=GITEA_RUNNER_NAME=home
|
||||
Environment=GITEA_RUNNER_LABELS=debian-12:docker://node:bookworm
|
||||
Secret=GITEA_RUNNER_REGISTRATION_TOKEN,type=env
|
||||
AutoUpdate=registry
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
|
|
@ -1,13 +0,0 @@
|
|||
[Container]
|
||||
Image=registry.access.redhat.com/ubi9/podman
|
||||
UserNS=host
|
||||
SecurityLabelDisable=true
|
||||
Unmask=/proc/sys
|
||||
AddDevice=/dev/net/tun
|
||||
Exec=sh -c "echo podman:10000:70000 > /etc/subuid && echo podman:10000:70000 > etc/subgid && chmod 777 /run/podman && su podman -c 'podman system service -t0 unix:///run/podman/podman.sock'"
|
||||
Volume=podman-run.volume:/run/podman:U,z
|
||||
Tmpfs=/etc
|
||||
Tmpfs=/home/podman/.cache
|
||||
AutoUpdate=registry
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -2,3 +2,4 @@
|
|||
set -euo pipefail
|
||||
cp -R sandbox/* /
|
||||
sh setup-server.sh
|
||||
systemctl enable --now podman.socket
|
||||
|
|
Loading…
Add table
Reference in a new issue