Skip to content

Commit 77c95a5

Browse files
committedSep 4, 2020
fix(bin): don't overwrite /bin
1 parent d78851f commit 77c95a5

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎Dockerfile

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN CGO_ENABLED=0 go build -mod=vendor -tags netgo -ldflags "-w" ./vendor/github
1616

1717
FROM registry.svc.ci.openshift.org/ocp/4.6:base
1818

19-
COPY --from=builder /src/bin /bin
19+
COPY --from=builder /src/bin/* /bin/
2020
COPY --from=builder /src/grpc-health-probe /bin/grpc_health_probe
2121

2222
# This image doesn't need to run as root user

‎Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ build: clean $(CMDS) $(OPM)
3232
cross: opm_version_flags=-ldflags "-X '$(PKG)/cmd/opm/version.gitCommit=$(GIT_COMMIT)' -X '$(PKG)/cmd/opm/version.opmVersion=$(OPM_VERSION)' -X '$(PKG)/cmd/opm/version.buildDate=$(BUILD_DATE)'"
3333
cross:
3434
ifeq ($(shell go env GOARCH),amd64)
35-
GOOS=darwin CC=o64-clang CXX=o64-clang++ CGO_ENABLED=1 $(GO) build $(opm_version_flags) $(TAGS) -o "$(PKG)/bin/darwin-amd64-opm" --ldflags "-extld=o64-clang" ./cmd/opm
36-
GOOS=windows CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_ENABLED=1 $(GO) build $(opm_version_flags) $(TAGS) -o "$(PKG)/bin/windows-amd64-opm" --ldflags "-extld=x86_64-w64-mingw32-gcc" ./cmd/opm
35+
GOOS=darwin CC=o64-clang CXX=o64-clang++ CGO_ENABLED=1 $(GO) build $(opm_version_flags) $(TAGS) -o "bin/darwin-amd64-opm" --ldflags "-extld=o64-clang" ./cmd/opm
36+
GOOS=windows CC=x86_64-w64-mingw32-gcc CXX=x86_64-w64-mingw32-g++ CGO_ENABLED=1 $(GO) build $(opm_version_flags) $(TAGS) -o "bin/windows-amd64-opm" --ldflags "-extld=x86_64-w64-mingw32-gcc" ./cmd/opm
3737
endif
3838

3939
.PHONY: static

0 commit comments

Comments
 (0)
Please sign in to comment.