From 38b36c28a02293b898789836dae33200059e46a2 Mon Sep 17 00:00:00 2001 From: max Date: Sat, 26 Sep 2026 17:43:38 +0200 Subject: [PATCH] ci(runner): add Portainer docker-compose stack and deployment guide for Act Runner --- runner/.env.sample | 8 ++++++++ runner/README.md | 14 ++++++++++++++ runner/docker-compose.yml | 25 +++++++++++++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 runner/.env.sample create mode 100644 runner/docker-compose.yml diff --git a/runner/.env.sample b/runner/.env.sample new file mode 100644 index 0000000..8587c31 --- /dev/null +++ b/runner/.env.sample @@ -0,0 +1,8 @@ +# Gitea Instance URL +GITEA_INSTANCE_URL=https://gitea.eibl.tech + +# Gitea Runner Registration Token (From Gitea Settings -> Actions -> Runners -> Create Runner) +GITEA_RUNNER_REGISTRATION_TOKEN=your_runner_registration_token_here + +# Runner Configuration +GITEA_RUNNER_NAME=logar-build-runner diff --git a/runner/README.md b/runner/README.md index fa7e1d4..cffdd88 100644 --- a/runner/README.md +++ b/runner/README.md @@ -40,3 +40,17 @@ jobs: ## Building & Pushing the Runner Trigger the automated workflow [`.gitea/workflows/build-runner.yml`](../.gitea/workflows/build-runner.yml) via the Gitea Actions UI (Actions → Build and Push LOGAR Runner → Run Workflow) or push changes to the `runner/` folder. + +--- + +## Deploying the Runner Stack via Portainer + +1. In Gitea, navigate to **Site Administration** (or Repo **Settings**) → **Actions** → **Runners** → **Create Runner**. Copy the registration token. +2. In Portainer, navigate to **Stacks** → **Add stack**. +3. Set the name to `logar-act-runner`. +4. Paste the contents of [`runner/docker-compose.yml`](docker-compose.yml) into the Web editor (or link to this Git repository). +5. In Environment variables, set: + - `GITEA_RUNNER_REGISTRATION_TOKEN`: `` +6. Click **Deploy the stack**. + +The runner will automatically register with Gitea under labels `ubuntu-latest`, `debian-latest`, and `logar-runner`, executing jobs inside the pre-configured `gitea.eibl.tech/me0nline/logar-runner:latest` container. diff --git a/runner/docker-compose.yml b/runner/docker-compose.yml new file mode 100644 index 0000000..37712a0 --- /dev/null +++ b/runner/docker-compose.yml @@ -0,0 +1,25 @@ +version: '3.8' + +services: + logar-runner: + image: gitea/act_runner:latest + container_name: logar-act-runner + restart: unless-stopped + environment: + - GITEA_INSTANCE_URL=https://gitea.eibl.tech + - GITEA_RUNNER_REGISTRATION_TOKEN=${GITEA_RUNNER_REGISTRATION_TOKEN} + - GITEA_RUNNER_NAME=logar-build-runner + - GITEA_RUNNER_LABELS=ubuntu-latest:docker://gitea.eibl.tech/me0nline/logar-runner:latest,debian-latest:docker://gitea.eibl.tech/me0nline/logar-runner:latest,logar-runner:docker://gitea.eibl.tech/me0nline/logar-runner:latest + volumes: + - /var/run/docker.sock:/var/run/docker.sock + - logar_runner_data:/data + networks: + - runner-net + +volumes: + logar_runner_data: + name: logar_runner_data + +networks: + runner-net: + name: logar_runner_net