init
This commit is contained in:
18
Makefile
Normal file
18
Makefile
Normal 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 .
|
||||
Reference in New Issue
Block a user