Improve makefile structure
This commit is contained in:
parent
fbf8eeac70
commit
0a824fa5a0
1 changed files with 4 additions and 3 deletions
7
Makefile
7
Makefile
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue