Fix image target to build multi-arch images to the Docker Hub
This commit is contained in:
parent
cc036e0af1
commit
c011bbae0c
1 changed files with 2 additions and 3 deletions
5
Makefile
5
Makefile
|
@ -54,11 +54,10 @@ install: build ## Install tube to $DESTDIR
|
|||
|
||||
ifeq ($(PUBLISH), 1)
|
||||
image: generate ## Build the Docker image
|
||||
@docker build --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" -t $(IMAGE):$(TAG) .
|
||||
@docker push $(IMAGE):$(TAG)
|
||||
@docker buildx build --push --platform linux/arm64,linux/amd64 --tag $(IMAGE):$(TAG) --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" .
|
||||
else
|
||||
image: generate
|
||||
@docker build --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" -t $(IMAGE):$(TAG) .
|
||||
@docker buildx build --platform linux/arm64,linux/amd64 --tag $(IMAGE):$(TAG) --build-arg VERSION="$(VERSION)" --build-arg COMMIT="$(COMMIT)" .
|
||||
endif
|
||||
|
||||
release: generate ## Release a new version to Gitea
|
||||
|
|
Loading…
Reference in a new issue