Patch the Dockerfile so that go build reuses the module cache
Some checks failed
ci/woodpecker/push/build-image Pipeline failed
Some checks failed
ci/woodpecker/push/build-image Pipeline failed
This commit is contained in:
@@ -47,7 +47,8 @@ RUN --mount=type=cache,target=/go/pkg/mod \
|
|||||||
go test ./...
|
go test ./...
|
||||||
|
|
||||||
# Build the cmd entrypoint
|
# Build the cmd entrypoint
|
||||||
RUN --mount=type=cache,target=/root/.cache/go-build \
|
RUN --mount=type=cache,target=/go/pkg/mod \
|
||||||
|
--mount=type=cache,target=/root/.cache/go-build \
|
||||||
go build \
|
go build \
|
||||||
-trimpath \
|
-trimpath \
|
||||||
-ldflags="-s -w" \
|
-ldflags="-s -w" \
|
||||||
|
|||||||
Reference in New Issue
Block a user