Skip to content

Commit 9f5c493

Browse files
committed
chore: add build task in makefile
Signed-off-by: Jakob Steiner <[email protected]>
1 parent 6747657 commit 9f5c493

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ clean:
2929

3030
.PHONY: build
3131
build:
32+
CGO_ENABLED=0 go build -o $(OUT)/webhook -ldflags '-w -extldflags "-static"' .
33+
34+
.PHONY: docker-build
35+
docker-build:
3236
docker build -t "$(IMAGE_NAME):$(IMAGE_TAG)" --network host .
3337

3438
.PHONY: rendered-manifest.yaml

0 commit comments

Comments
 (0)