Initial commit: merged geosite build pipeline

This commit is contained in:
Payroll3042
2026-07-24 20:25:50 +03:00
parent a101ffe758
commit 4334f08b57
2 changed files with 41 additions and 0 deletions
+29
View File
@@ -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
+12
View File
@@ -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