Skip to content

Commit

Permalink
[build][fix] not create the bin folder
Browse files Browse the repository at this point in the history
  • Loading branch information
cuongpiger committed May 25, 2024
1 parent ea59a2f commit d9435be
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,5 @@ ARG VERSION
RUN OS=$TARGETOS ARCH=$TARGETARCH make $TARGETOS/$TARGETARCH

FROM registry.k8s.io/build-image/go-runner:v2.3.1-go1.22.0-bookworm.0 AS linux-vngcloud
COPY --from=builder /go/src/github.com/vngcloud/vngcloud-csi-volume-modifier/bin/vngcloud-csi-volume-modifier /bin/vngcloud-csi-volume-modifier
COPY --from=builder /go/src/github.com/vngcloud/vngcloud-csi-volume-modifier/vngcloud-csi-volume-modifier /bin/vngcloud-csi-volume-modifier
ENTRYPOINT ["/bin/vngcloud-csi-volume-modifier"]
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ all: build

.PHONY: build
build:
go build -o main -ldflags ${LDFLAGS} cmd/main.go
go build -o bin/main -ldflags ${LDFLAGS} cmd/main.go

.PHONY: proto
proto:
Expand All @@ -29,7 +29,7 @@ check: check-proto
.PHONY: linux/$(ARCH) bin/vngcloud-csi-volume-modifier
linux/$(ARCH): bin/vngcloud-csi-volume-modifier
bin/vngcloud-csi-volume-modifier: | bin
CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -mod=mod -ldflags ${LDFLAGS} -o bin/vngcloud-csi-volume-modifier ./cmd
CGO_ENABLED=0 GOOS=linux GOARCH=$(ARCH) go build -mod=mod -ldflags ${LDFLAGS} -o vngcloud-csi-volume-modifier ./cmd

.PHONY: check-proto
check-proto:
Expand Down

0 comments on commit d9435be

Please sign in to comment.