mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-26 15:08:28 +00:00
Cache go mod directory
This commit is contained in:
parent
98d3f88bfb
commit
eeabe892a9
1 changed files with 1 additions and 0 deletions
|
@ -16,6 +16,7 @@ ARG TARGETARCH
|
||||||
ARG FLAGS
|
ARG FLAGS
|
||||||
RUN --mount=target=. \
|
RUN --mount=target=. \
|
||||||
--mount=type=cache,target=/root/.cache/go-build \
|
--mount=type=cache,target=/root/.cache/go-build \
|
||||||
|
--mount=type=cache,target=/go/pkg/mod \
|
||||||
USERARCH=`go env GOARCH` \
|
USERARCH=`go env GOARCH` \
|
||||||
GOARCH="$TARGETARCH" \
|
GOARCH="$TARGETARCH" \
|
||||||
GOOS="linux" \
|
GOOS="linux" \
|
||||||
|
|
Loading…
Reference in a new issue