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
|
||||
Reference in New Issue
Block a user