Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove legacy docker build target
Browse files Browse the repository at this point in the history
Kidswiss committed Aug 28, 2024
1 parent c08a89b commit 188673c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Makefile
Original file line number Diff line number Diff line change
@@ -30,18 +30,14 @@ help: ## Show this help
@grep -E -h '\s##\s' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'

.PHONY: build
build: build-bin build-docker ## All-in-one build
build: build-bin docker-build ## All-in-one build

.PHONY: build-bin
build-bin: export CGO_ENABLED = 0
build-bin: fmt vet ## Build binary
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 \
go build -o $(BIN_FILENAME) .

.PHONY: build-docker
build-docker: build-bin ## Build docker image
$(DOCKER_CMD) build --platform linux/amd64 -t $(CONTAINER_IMG) .

.PHONY: test
test: test-go ## All-in-one test

0 comments on commit 188673c

Please sign in to comment.