Fix image target

This commit is contained in:
James Mills 2023-03-12 22:12:12 +10:00
parent 239d26a15a
commit 7643998153
No known key found for this signature in database
GPG Key ID: AC4C014F1440EBD6

View File

@ -57,14 +57,14 @@ install: build ## Install zs (cli) to $DESTDIR
@install -D -m 755 zs $(DESTDIR)/zs
ifeq ($(PUBLISH), 1)
image: generate ## Build the Docker image
image: ## Build the Docker image
@docker buildx build \
--build-arg VERSION="$(VERSION)" \
--build-arg COMMIT="$(COMMIT)" \
--build-arg BUILD="$(BUILD)" \
--platform linux/amd64,linux/arm64 --push -t $(IMAGE):$(TAG) .
else
image: generate
image:
@docker build \
--build-arg VERSION="$(VERSION)" \
--build-arg COMMIT="$(COMMIT)" \
@ -72,7 +72,7 @@ image: generate
-t $(IMAGE):$(TAG) .
endif
release: generate ## Release a new version to Gitea
release: ## Release a new version to Gitea
@./tools/release.sh
fmt: ## Format sources files