mirror of
https://github.com/lukaszraczylo/traefik-llmgateway.git
synced 2026-12-06 11:03:52 +00:00
The standalone binary reloads its config file on change and on SIGHUP, and keeps the old gateway for running requests. GoReleaser publishes the standalone binaries and a signed multi-arch image to ghcr.io/lukaszraczylo/traefik-llmgateway. The plugin form does not change.
118 lines
3.3 KiB
YAML
118 lines
3.3 KiB
YAML
version: 2
|
|
|
|
# Traefik loads the plugin from this repository's source under Yaegi, so the
|
|
# plugin form needs no binary. The build below is the standalone gateway
|
|
# (cmd/gateway), which runs behind a reverse proxy instead of inside Traefik.
|
|
builds:
|
|
- id: llmgateway
|
|
main: ./cmd/gateway
|
|
binary: llmgateway
|
|
env:
|
|
- CGO_ENABLED=0
|
|
- GOFLAGS=-mod=vendor
|
|
flags:
|
|
- -trimpath
|
|
ldflags:
|
|
- -s -w
|
|
- -X main.version={{ .Version }}
|
|
goos:
|
|
- linux
|
|
- darwin
|
|
goarch:
|
|
- amd64
|
|
- arm64
|
|
|
|
archives:
|
|
- id: llmgateway
|
|
ids:
|
|
- llmgateway
|
|
formats: [tar.gz]
|
|
name_template: "llmgateway_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
|
|
files:
|
|
- LICENSE
|
|
- README.md
|
|
|
|
# Source archive for GitHub releases, built with `git archive` under the
|
|
# hood. `git archive` reads .gitattributes export-ignore at the archived
|
|
# commit — that is the real filter for test files and non-shipped dirs
|
|
# (vendor/, tools/, integration/, docs/, examples/, testdata/,
|
|
# .superpowers/, .github/); see .gitattributes at the repo root.
|
|
#
|
|
# An `archives:` files-list with `!glob` excludes looked equivalent but was
|
|
# not: GoReleaser's archive fileglob has no negation, so every `!`-prefixed
|
|
# entry was a silent no-op and the tarball shipped every file the plain
|
|
# globs matched, tests and vendor included. `source:` avoids that trap
|
|
# entirely because it does not use the archive fileglob at all.
|
|
source:
|
|
enabled: true
|
|
format: tar.gz
|
|
name_template: "{{ .ProjectName }}_v{{ .Version }}_source"
|
|
# Extracting the tarball must land everything under one directory, not
|
|
# loose at the archive root, the same way GitHub's own source tarballs
|
|
# behave — without this, `tar xzf` scatters the plugin's files straight
|
|
# into the extracting directory. Verified with `goreleaser release
|
|
# --snapshot --clean`: the tarball's top-level entry is exactly
|
|
# traefik-llmgateway_v{version}/ (v0.2 final review wave, 2026-08-20).
|
|
prefix_template: "{{ .ProjectName }}_v{{ .Version }}/"
|
|
|
|
checksum:
|
|
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"
|
|
algorithm: sha256
|
|
|
|
changelog:
|
|
sort: asc
|
|
filters:
|
|
exclude:
|
|
- "^docs:"
|
|
- "^test:"
|
|
- "^Merge"
|
|
- "^WIP"
|
|
- "^chore:"
|
|
|
|
release:
|
|
github:
|
|
owner: lukaszraczylo
|
|
name: traefik-llmgateway
|
|
name_template: "v{{ .Version }}"
|
|
draft: false
|
|
prerelease: auto
|
|
|
|
signs:
|
|
- cmd: cosign
|
|
signature: "${artifact}.sigstore.json"
|
|
args:
|
|
- sign-blob
|
|
- "--bundle=${signature}"
|
|
- "${artifact}"
|
|
- "--yes"
|
|
artifacts: checksum
|
|
output: true
|
|
|
|
dockers_v2:
|
|
- ids:
|
|
- llmgateway
|
|
images:
|
|
- "ghcr.io/lukaszraczylo/traefik-llmgateway"
|
|
tags:
|
|
- "{{ .Version }}"
|
|
- "latest"
|
|
platforms:
|
|
- linux/amd64
|
|
- linux/arm64
|
|
dockerfile: Dockerfile.goreleaser
|
|
labels:
|
|
"org.opencontainers.image.title": "llmgateway"
|
|
"org.opencontainers.image.version": "{{ .Version }}"
|
|
"org.opencontainers.image.source": "https://github.com/lukaszraczylo/traefik-llmgateway"
|
|
"org.opencontainers.image.description": "Standalone multi-provider LLM gateway, the compiled form of the traefik-llmgateway plugin"
|
|
"org.opencontainers.image.licenses": "MIT"
|
|
|
|
docker_signs:
|
|
- cmd: cosign
|
|
artifacts: manifests
|
|
output: true
|
|
args:
|
|
- sign
|
|
- "${artifact}@${digest}"
|
|
- "--yes"
|