Skip to content

Commit

Permalink
fix: typo webhook
Browse files Browse the repository at this point in the history
Signed-off-by: peefy <[email protected]>
  • Loading branch information
Peefy committed Sep 4, 2024
1 parent 50bb098 commit 6c5b656
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,13 @@ build-linux: ## Build binaries.

.PHONY: webhook
webhook: manifests generate fmt vet ## Build webhook server and init container binary
go build -o bin/wehbook-server cmd/webhook-server/main.go
go build -o bin/wehbook-init cmd/webhook-init/main.go
go build -o bin/webhook-server cmd/webhook-server/main.go
go build -o bin/webhook-init cmd/webhook-init/main.go

.PHONY: webook-linux
webhook-linux: generate fmt vet
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/wehbook-server cmd/webhook-server/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/wehbook-init cmd/webhook-init/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/webhook-server cmd/webhook-server/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o bin/webhook-init cmd/webhook-init/main.go

.PHONY: run
run: manifests generate fmt vet ## Run a controller from your host.
Expand Down
2 changes: 1 addition & 1 deletion docker/amd64/Dockerfile.init
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ARG TARGETARCH
# Build the webhook init binary. The type=target mount tells Docker to mount the
# current directory read-only in the WORKDIR. The type=cache mount tells Docker
# to cache the Go modules cache across builds.
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o webhook-init cmd/wehbook-init/main.go
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o webhook-init cmd/webhook-init/main.go

FROM ${BASE_IMAGE} as image
RUN apt-get update && apt-get install -y ca-certificates tini
Expand Down
2 changes: 1 addition & 1 deletion docker/amd64/Dockerfile.server
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ARG TARGETARCH
# Build the webhook server binary. The type=target mount tells Docker to mount the
# current directory read-only in the WORKDIR. The type=cache mount tells Docker
# to cache the Go modules cache across builds.
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o webhook-server cmd/wehbook-server/main.go
RUN GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o webhook-server cmd/webhook-server/main.go

FROM ${BASE_IMAGE} as image
RUN apt-get update && apt-get install -y ca-certificates tini
Expand Down

0 comments on commit 6c5b656

Please sign in to comment.