mirror of
https://git.mills.io/prologic/zs
synced 2024-11-22 13:26:11 +03:00
Fix image target
This commit is contained in:
parent
239d26a15a
commit
7643998153
6
Makefile
6
Makefile
@ -57,14 +57,14 @@ install: build ## Install zs (cli) to $DESTDIR
|
|||||||
@install -D -m 755 zs $(DESTDIR)/zs
|
@install -D -m 755 zs $(DESTDIR)/zs
|
||||||
|
|
||||||
ifeq ($(PUBLISH), 1)
|
ifeq ($(PUBLISH), 1)
|
||||||
image: generate ## Build the Docker image
|
image: ## Build the Docker image
|
||||||
@docker buildx build \
|
@docker buildx build \
|
||||||
--build-arg VERSION="$(VERSION)" \
|
--build-arg VERSION="$(VERSION)" \
|
||||||
--build-arg COMMIT="$(COMMIT)" \
|
--build-arg COMMIT="$(COMMIT)" \
|
||||||
--build-arg BUILD="$(BUILD)" \
|
--build-arg BUILD="$(BUILD)" \
|
||||||
--platform linux/amd64,linux/arm64 --push -t $(IMAGE):$(TAG) .
|
--platform linux/amd64,linux/arm64 --push -t $(IMAGE):$(TAG) .
|
||||||
else
|
else
|
||||||
image: generate
|
image:
|
||||||
@docker build \
|
@docker build \
|
||||||
--build-arg VERSION="$(VERSION)" \
|
--build-arg VERSION="$(VERSION)" \
|
||||||
--build-arg COMMIT="$(COMMIT)" \
|
--build-arg COMMIT="$(COMMIT)" \
|
||||||
@ -72,7 +72,7 @@ image: generate
|
|||||||
-t $(IMAGE):$(TAG) .
|
-t $(IMAGE):$(TAG) .
|
||||||
endif
|
endif
|
||||||
|
|
||||||
release: generate ## Release a new version to Gitea
|
release: ## Release a new version to Gitea
|
||||||
@./tools/release.sh
|
@./tools/release.sh
|
||||||
|
|
||||||
fmt: ## Format sources files
|
fmt: ## Format sources files
|
||||||
|
Loading…
Reference in New Issue
Block a user