Files
MeshCore/ci/act_runner/docker-compose.yml
T
shade b6e6e1b2ec
Firmware build / build (push) Canceled after 0s
Firmware build / release (push) Canceled after 0s
CI: сборка прошивок на Gitea Actions (workflow, скрипт, раннер)
2026-10-08 22:28:42 +03:00

33 lines
1.7 KiB
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# act_runner для Gitea: выполняет Gitea Actions на этом сервере.
#
# Запуск (из каталога ci/act_runner):
# 1) получить токен: Gitea → репозиторий → Settings → Actions → Runners → Create new Runner
# 2) создать .env рядом с этим файлом:
# GITEA_INSTANCE_URL=https://git.meshinfo.ru
# GITEA_RUNNER_REGISTRATION_TOKEN=<токен из шага 1>
# GITEA_RUNNER_NAME=meshcore-builder
# 3) docker compose up -d
# 4) проверить: docker compose logs -f
#
# Метка ubuntu-latest должна совпадать с runs-on в .gitea/workflows/firmware.yml.
# Образ job'а — catthehacker/ubuntu:act-22.04: в нём уже есть git, curl, python3,
# build-essential; PlatformIO ставится шагом workflow и живёт в кэше.
services:
act-runner:
image: gitea/act_runner:latest
container_name: meshcore-act-runner
restart: unless-stopped
environment:
GITEA_INSTANCE_URL: ${GITEA_INSTANCE_URL:?укажите адрес Gitea в .env}
GITEA_RUNNER_REGISTRATION_TOKEN: ${GITEA_RUNNER_REGISTRATION_TOKEN:?нужен токен раннера}
GITEA_RUNNER_NAME: ${GITEA_RUNNER_NAME:-meshcore-builder}
GITEA_RUNNER_LABELS: ${GITEA_RUNNER_LABELS:-ubuntu-latest:docker://catthehacker/ubuntu:act-22.04}
CONFIG_FILE: /config.yaml
volumes:
# состояние раннера (.runner) и локальный кэш Gitea Actions
- ./data:/data
- ./config.yaml:/config.yaml:ro
# job'ы запускаются как соседние контейнеры, поэтому нужен доступ к демону
- /var/run/docker.sock:/var/run/docker.sock