diff --git a/Dockerfile b/Dockerfile index a705bb38..5b78b1a8 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,7 +67,7 @@ FROM builder-$TARGETOS AS builder FROM scratch AS local ARG TARGETOS TARGETARCH -COPY --from=builder /binaries/cagent-$TARGETOS-$TARGETARCH cagent +COPY --from=builder /binaries/cagent-$TARGETOS-$TARGETARCH* cagent FROM scratch AS cross COPY --from=builder /binaries . diff --git a/Taskfile.yml b/Taskfile.yml index 96283334..af57c0a1 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -57,7 +57,7 @@ tasks: build-local: desc: Build binaries for local host platform - cmd: docker buildx build --target=local {{.BUILD_ARGS}} --platform local --output=./dist . + cmd: docker buildx build --target=local {{.BUILD_ARGS}} --platform local --output=./dist . {{if eq OS "windows"}}&& mv ./dist/cagent ./dist/cagent.exe{{end}} cross: desc: Build binaries for multiple platforms diff --git a/docs/CONTRIBUTING.md b/docs/CONTRIBUTING.md index a70b1ea7..588ac20d 100644 --- a/docs/CONTRIBUTING.md +++ b/docs/CONTRIBUTING.md @@ -15,6 +15,10 @@ If you're hacking on `cagent`, or just want to be on the bleeding edge, then bui - [Task 3.44 or higher](https://taskfile.dev/installation/) - [`golangci-lint`](https://golangci-lint.run/docs/welcome/install/#binaries) +> Note: On windows, we currently only support building from source via docker with `task build-local` +> +> See [here](#building-with-docker) for more details + ##### Build commands ```bash