Skip to content

Commit

Permalink
fix: make start to also work with arm64 (#2590)
Browse files Browse the repository at this point in the history
Signed-off-by: eduardodbr <eduardodbr@hotmail.com>
  • Loading branch information
eduardodbr committed Apr 25, 2023
1 parent b51a576 commit 5581431
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,11 @@ dist/$(BINARY_NAME)-%:
CGO_ENABLED=0 $(GOARGS) go build -v -ldflags '${LDFLAGS}' -o ${DIST_DIR}/$(BINARY_NAME)-$* ./cmd

.PHONY: image
image: clean dist/$(BINARY_NAME)-linux-amd64
BUILD_DIST = dist/$(BINARY_NAME)-linux-amd64
ifeq ($(shell uname -m),arm64)
BUILD_DIST = dist/$(BINARY_NAME)-linux-arm64
endif
image: clean $(BUILD_DIST)
DOCKER_BUILDKIT=1 docker build -t $(IMAGE_NAMESPACE)/$(BINARY_NAME):$(VERSION) --target $(BINARY_NAME) -f $(DOCKERFILE) .
@if [ "$(DOCKER_PUSH)" = "true" ]; then docker push $(IMAGE_NAMESPACE)/$(BINARY_NAME):$(VERSION); fi
ifeq ($(K3D),true)
Expand Down

0 comments on commit 5581431

Please sign in to comment.