chore: unify runner naming to sharedinbox-runner

This commit is contained in:
Thomas Güttler
2026-05-08 12:55:16 +02:00
parent 06cf8c7f99
commit 67e6b4ebb9
6 changed files with 45 additions and 37 deletions
-18
View File
@@ -1,18 +0,0 @@
# Dockerfile for a Codeberg Runner with Nix installed
FROM gitea/act_runner:latest
# Install Nix requirements and basic tools
RUN apt-get update && apt-get install -y curl xz-utils sudo && rm -rf /var/lib/apt/lists/*
# Install Nix in single-user mode (suitable for container)
# We use the Determinate Systems installer for reliability
RUN curl --proto '=https' --tlsv1.2 -sSf -L https://install.determinate.systems/nix | sh -s -- install linux \
--init none \
--no-confirm
# Add Nix to PATH
ENV PATH="/nix/var/nix/profiles/default/bin:${PATH}"
ENV NIX_PATH="nixpkgs=channel:nixos-unstable"
# Ensure the runner user can use Nix
RUN echo "experimental-features = nix-command flakes" >> /etc/nix/nix.conf
-18
View File
@@ -1,18 +0,0 @@
[Unit]
Description=Codeberg CI Runner (Docker Compose)
Requires=docker.service
After=docker.service network-online.target
[Service]
Type=simple
User=root
Group=root
WorkingDirectory=/
ExecStartPre=-/usr/bin/docker compose -f /opt/sharedinbox-runner/codeberg-runner/docker-compose.yml down
ExecStart=/usr/bin/docker compose -f /opt/sharedinbox-runner/codeberg-runner/docker-compose.yml up --build
ExecStop=/usr/bin/docker compose -f /opt/sharedinbox-runner/codeberg-runner/docker-compose.yml down
Restart=always
RestartSec=10
[Install]
WantedBy=multi-user.target
-19
View File
@@ -1,19 +0,0 @@
services:
runner:
build:
context: .
dockerfile: Dockerfile
restart: always
env_file:
- ../.env
environment:
- GITEA_INSTANCE_URL=${CODEBERG_INSTANCE_URL:-https://codeberg.org}
- GITEA_RUNNER_REGISTRATION_TOKEN=${CODEBERG_CI_RUNNER_TOKEN}
- GITEA_RUNNER_NAME=${CODEBERG_RUNNER_NAME:-laptop-runner}
- GITEA_RUNNER_LABELS=${CODEBERG_RUNNER_LABELS:-self-hosted,linux,nix}
volumes:
- /var/run/docker.sock:/var/run/docker.sock
- ./runner-data:/data
# Use host network if you want to access local services easily,
# but for most cases the default bridge is fine.
# network_mode: host