PocketBase view collection benutzen. Dokumentation aktualisieren.

This commit is contained in:
2026-07-14 20:06:19 +02:00
parent a1504dd5e6
commit b8b4e00b92
10 changed files with 162 additions and 138 deletions

View File

@@ -9,13 +9,13 @@ build:
$(DOCKER_RUN) sh -c '\
set -e; \
if [ -f .env ]; then . ./.env; fi; \
if [ -z "$$PB_URL" ] || [ -z "$$PB_USER" ] || [ -z "$$PB_PASSWORD" ] || [ -z "$$PB_CATEGORY" ]; then \
echo "error: .env is missing or one of PB_URL / PB_USER / PB_PASSWORD / PB_CATEGORY is not set"; \
if [ -z "$$PB_URL" ]; then \
echo "error: .env is missing or PB_URL is not set"; \
exit 1; \
fi; \
go build \
-buildvcs=false \
-ldflags "-X main.PBURL=$${PB_URL} -X main.PBUser=$${PB_USER} -X main.PBPassword=$${PB_PASSWORD} -X main.PBCategory=$${PB_CATEGORY}" \
-ldflags "-X main.PBURL=$${PB_URL}" \
-o royalroadupdates \
./cmd/royalroadupdates'
@@ -23,7 +23,7 @@ check:
$(DOCKER_RUN) sh -c '\
set -e; \
if [ -f .env ]; then . ./.env; fi; \
export PB_URL PB_USER PB_PASSWORD PB_CATEGORY; \
export PB_URL; \
d=$$(gofmt -l .); \
if [ -n "$$d" ]; then echo "format errors:"; echo "$$d"; exit 1; fi; \
go vet -buildvcs=false ./...; \