Skip to content

Commit

Permalink
Use same docker platform as go
Browse files Browse the repository at this point in the history
  • Loading branch information
Kidswiss committed Jun 13, 2023
1 parent d1717ac commit a2405cf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ test: ## Run tests
docker-build:
env CGO_ENABLED=0 GOOS=$(DOCKER_IMAGE_GOOS) GOARCH=$(DOCKER_IMAGE_GOARCH) \
go build -o ${BIN_FILENAME}
docker build -t ${GHCR_IMG} .
docker build --platform $(DOCKER_IMAGE_GOOS)/$(DOCKER_IMAGE_GOARCH) -t ${GHCR_IMG} .

.PHONY: docker-push
docker-push: docker-build ## Push docker image with the manager.
Expand Down

0 comments on commit a2405cf

Please sign in to comment.