Skip to content

Commit

Permalink
Update docker build make target
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabriel Saratura committed Jun 6, 2023
1 parent 306a849 commit ae32180
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,9 @@ build-bin: fmt vet ## Build binary
@go build -o $(BIN_FILENAME) .

.PHONY: build-docker
build-docker: build-bin ## Build docker image
build-docker: ## Build docker image
env CGO_ENABLED=0 GOOS=$(DOCKER_IMAGE_GOOS) GOARCH=$(DOCKER_IMAGE_GOARCH) \
go build -o ${BIN_FILENAME}
$(DOCKER_CMD) build -t $(CONTAINER_IMG) .

.PHONY: docs-serve
Expand Down
3 changes: 3 additions & 0 deletions Makefile.vars.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ ANTORA_PREVIEW_CMD ?= $(DOCKER_CMD) run --rm --publish 35729:35729 --publish 202
ENVTEST_ADDITIONAL_FLAGS ?= --bin-dir "$(go_bin)"
# See https://storage.googleapis.com/kubebuilder-tools/ for list of supported K8s versions
ENVTEST_K8S_VERSION = 1.24.x

DOCKER_IMAGE_GOOS = linux
DOCKER_IMAGE_GOARCH = amd64

0 comments on commit ae32180

Please sign in to comment.