Build and push geosite-build image / build (push) Successful in 19s
The `docker` label isn't advertised by any registered runner, so jobs
never got picked up ("No matching online runner with label: docker").
Switch to ubuntu-latest, which the existing runners do advertise.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
30 lines
907 B
YAML
30 lines
907 B
YAML
name: Build and push geosite-build image
|
|
|
|
on:
|
|
push:
|
|
branches: [main]
|
|
workflow_dispatch: {}
|
|
|
|
jobs:
|
|
build:
|
|
# Must match a label your registered runners advertise. Available here:
|
|
# ubuntu-latest, ubuntu-24.04, ubuntu-22.04.
|
|
runs-on: ubuntu-latest
|
|
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
|