Skip to content

Commit 71fb7c5

Browse files
committed
build: always build amd64 binary
1 parent 8e1053d commit 71fb7c5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ REV=$(shell git describe --long --tags --match='v*' --dirty 2>/dev/null || git r
3636

3737
build-%:
3838
mkdir -p bin
39-
CGO_ENABLED=0 GOOS=linux go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
39+
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-X main.version=$(REV) -extldflags "-static"' -o ./bin/$* ./cmd/$*
4040

4141
container-%: build-%
4242
docker build -t $(REGISTRY_NAME):$(IMAGE_TAG) -f package/docker/Dockerfile --label revision=$(REV) .

0 commit comments

Comments
 (0)