Improve makefile structure

This commit is contained in:
andig 2020-08-31 18:43:48 +02:00
parent fbf8eeac70
commit 0a824fa5a0

View file

@ -5,6 +5,7 @@ SHA := $(shell git rev-parse --short HEAD)
VERSION := $(if $(TAG_NAME),$(TAG_NAME),$(SHA))
BUILD_DATE := $(shell date -u '+%Y-%m-%d_%H:%M:%S')
IMAGE := andig/evcc
ALPINE := 3.12
TARGETS := arm.v6,arm.v8,amd64
@ -41,14 +42,14 @@ release:
publish-testing:
@echo Version: $(VERSION) $(BUILD_DATE)
seihon publish --dry-run=false --template docker/tmpl.Dockerfile --base-runtime-image alpine:$(ALPINE) \
--image-name andig/evcc -v "testing" --targets=amd64
--image-name $(IMAGE) -v "testing" --targets=arm.v6,amd64
publish-latest:
@echo Version: $(VERSION) $(BUILD_DATE)
seihon publish --dry-run=false --template docker/tmpl.Dockerfile --base-runtime-image alpine:$(ALPINE) \
--image-name andig/evcc -v "latest" --targets=$(TARGETS)
--image-name $(IMAGE) -v "latest" --targets=$(TARGETS)
publish-images:
@echo Version: $(VERSION) $(BUILD_DATE)
seihon publish --dry-run=false --template docker/tmpl.Dockerfile --base-runtime-image alpine:$(ALPINE) \
--image-name andig/evcc -v "latest" -v "$(TAG_NAME)" --targets=$(TARGETS)
--image-name $(IMAGE) -v "latest" -v "$(TAG_NAME)" --targets=$(TARGETS)