mirror of
https://git.mills.io/prologic/zs
synced 2025-04-10 04:21:03 +00:00
Fix image target
This commit is contained in:
parent
239d26a15a
commit
7643998153
1 changed files with 3 additions and 3 deletions
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…
Add table
Reference in a new issue