From 4334f08b572f0337a229b8dde423638cf7225391 Mon Sep 17 00:00:00 2001 From: Payroll3042 <2538553@gmail.com> Date: Fri, 24 Jul 2026 20:25:50 +0300 Subject: [PATCH] Initial commit: merged geosite build pipeline --- build-push.yml | 29 +++++++++++++++++++++++++++++ runner-compose.yml | 12 ++++++++++++ 2 files changed, 41 insertions(+) create mode 100644 build-push.yml create mode 100644 runner-compose.yml diff --git a/build-push.yml b/build-push.yml new file mode 100644 index 0000000..a0b2f56 --- /dev/null +++ b/build-push.yml @@ -0,0 +1,29 @@ +name: Build and push geosite-build image + +on: + push: + branches: [main] + workflow_dispatch: {} + +jobs: + build: + # If this label isn't registered on your runner, check runner-data/.runner + # after registration, or set a custom label when registering act_runner. + runs-on: docker + steps: + # Full GitHub URL is required for actions not mirrored on your own + # Gitea instance — a plain "actions/checkout@v4" won't resolve. + - name: Checkout + uses: https://github.com/actions/checkout@v4 + + - name: Build image + run: | + docker build -t git.5838.ru/payroll3042/geosite-build:latest -f Dockerfile.scheduled . + + - name: Log in to Gitea registry + run: | + echo "${{ secrets.REGISTRY_TOKEN }}" | docker login git.5838.ru -u Payroll3042 --password-stdin + + - name: Push image + run: | + docker push git.5838.ru/payroll3042/geosite-build:latest diff --git a/runner-compose.yml b/runner-compose.yml new file mode 100644 index 0000000..4070a43 --- /dev/null +++ b/runner-compose.yml @@ -0,0 +1,12 @@ +services: + runner: + image: gitea/act_runner:latest + container_name: gitea-runner + environment: + GITEA_INSTANCE_URL: "https://git.5838.ru" + GITEA_RUNNER_REGISTRATION_TOKEN: "REPLACE_WITH_TOKEN_FROM_ADMIN_PANEL" + GITEA_RUNNER_NAME: "homelab-runner" + volumes: + - ./runner-data:/data + - /var/run/docker.sock:/var/run/docker.sock + restart: unless-stopped