rd13_tile_server/.forgejo/workflows/build-marker-api.yml
Conrad Schulz 9df190aca8 feat: add Go marker-api service for MediaWiki Kartographer pin support
- services/marker-api/: Go HTTP service (0 external deps, ~8 MB RAM)
  - Mathematically correct teardrop pin shape (Google Maps style)
  - Tangent-based outline: circle + straight sides meeting at tip
  - White border + white inner dot, in-memory cache (max 500 entries)
- .forgejo/workflows/build-marker-api.yml: CI builds & pushes to
  Forgejo registry on push to main (image: rd13_tile_server-marker-api)
- docker-compose.yml: add marker-api service on port 9984
- Caddyfile (rd13_system_proxy): route /styles/v4/marker/* -> :9984
- docs/ADMIN.md + MAINTAINER.md: marker-api dokumentiert

Fixes: /styles/v4/marker/pin-m+{color}(@{scale}x).png was 404, now 200
2026-07-01 11:59:00 +00:00

35 lines
934 B
YAML

name: Build & Push marker-api
on:
push:
branches:
- main
paths:
- 'services/marker-api/**'
- '.forgejo/workflows/build-marker-api.yml'
env:
REGISTRY: 192.168.178.6:8083
IMAGE: 192.168.178.6:8083/${{ github.repository_owner }}/rd13_tile_server-marker-api
jobs:
build:
runs-on: docker
steps:
- uses: actions/checkout@v4
- name: Login to Forgejo Container Registry
run: |
echo "${{ secrets.GITHUB_TOKEN }}" | \
docker login ${{ env.REGISTRY }} \
--username "${{ github.actor }}" \
--password-stdin
- name: Build & push marker-api
run: |
docker build \
--tag "${{ env.IMAGE }}:latest" \
--tag "${{ env.IMAGE }}:${{ github.sha }}" \
./services/marker-api
docker push "${{ env.IMAGE }}:latest"
docker push "${{ env.IMAGE }}:${{ github.sha }}"