This commit is contained in:
glidea
2025-04-19 15:50:26 +08:00
commit 8b33df8a05
109 changed files with 24407 additions and 0 deletions

18
Makefile Normal file
View File

@@ -0,0 +1,18 @@
VERSION ?= $(shell git describe --tags --always)
IMAGE_NAME ?= zenfeed
REGISTRY ?= glidea
FULL_IMAGE_NAME = $(REGISTRY)/$(IMAGE_NAME)
.PHONY: test push build-installer
test:
go test -race -v -coverprofile=coverage.out -coverpkg=./... ./...
push:
docker buildx create --use --name multi-platform-builder || true
docker buildx build --platform linux/amd64,linux/arm64 \
--build-arg VERSION=$(VERSION) \
-t $(FULL_IMAGE_NAME):$(VERSION) \
-t $(FULL_IMAGE_NAME):latest \
--push .