Skip to content

Commit

Permalink
Remove unused code in scripts/build
Browse files Browse the repository at this point in the history
  • Loading branch information
brandboat authored and bk201 committed May 10, 2024
1 parent 3bdd9af commit c99d860
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion Dockerfile.dapper
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN curl -sSfL https://github.com/docker/buildx/releases/download/v0.13.1/buildx
# install openapi-gen
RUN go install k8s.io/code-generator/cmd/[email protected]

ENV DAPPER_ENV REPO TAG CROSS
ENV DAPPER_ENV REPO TAG
ENV DAPPER_SOURCE /go/src/github.com/harvester/node-manager/
ENV DAPPER_OUTPUT ./bin ./manifests
ENV DAPPER_DOCKER_SOCKET true
Expand Down
5 changes: 0 additions & 5 deletions scripts/build
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,6 @@ build() {
for arch in "amd64" "arm64"; do
GOARCH="$arch" CGO_ENABLED=0 go build -ldflags "$LINKFLAGS $OTHER_LINKFLAGS" -o "bin/$name-$arch" "$pkg"
done

if [ "$CROSS" = "true" ] && [ "$ARCH" = "amd64" ]; then
GOOS=darwin go build -ldflags "$LINKFLAGS" -o "bin/$name-darwin" "$pkg"
GOOS=windows go build -ldflags "$LINKFLAGS" -o "bin/$name-windows" "$pkg"
fi
}

build "harvester-node-manager" "."
Expand Down

0 comments on commit c99d860

Please sign in to comment.