Initial commit: merged geosite build pipeline
This commit is contained in:
@@ -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
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user