27 lines
1016 B
YAML
27 lines
1016 B
YAML
|
|
# Gitea act_runner — CI/CD executor for Gitea Actions
|
||
|
|
#
|
||
|
|
# Setup steps:
|
||
|
|
# 1. Get a runner registration token from:
|
||
|
|
# https://devops.cloudhost.es/Malin/paste.es/settings/actions/runners
|
||
|
|
# 2. Add it to your .env file:
|
||
|
|
# RUNNER_REGISTRATION_TOKEN=<token from Gitea>
|
||
|
|
# 3. Start the runner:
|
||
|
|
# docker compose -f docker-compose.runner.yml up -d
|
||
|
|
#
|
||
|
|
# The runner registers itself automatically on first start.
|
||
|
|
# After that, push to main and the docker.yml workflow will fire.
|
||
|
|
|
||
|
|
services:
|
||
|
|
act-runner:
|
||
|
|
image: gitea/act_runner:latest
|
||
|
|
container_name: paste-es-act-runner
|
||
|
|
restart: unless-stopped
|
||
|
|
volumes:
|
||
|
|
- /var/run/docker.sock:/var/run/docker.sock
|
||
|
|
- ./data/runner:/data
|
||
|
|
environment:
|
||
|
|
- GITEA_INSTANCE_URL=https://devops.cloudhost.es
|
||
|
|
- GITEA_RUNNER_REGISTRATION_TOKEN=${RUNNER_REGISTRATION_TOKEN}
|
||
|
|
- GITEA_RUNNER_NAME=paste-es-runner
|
||
|
|
- GITEA_RUNNER_LABELS=ubuntu-latest:docker://node:20-bullseye
|