Cache go mod directory

This commit is contained in:
Till Faelligen 2022-11-04 11:54:53 +01:00
parent 98d3f88bfb
commit eeabe892a9
No known key found for this signature in database
GPG Key ID: ACCDC9606D472758

View File

@ -16,6 +16,7 @@ ARG TARGETARCH
ARG FLAGS
RUN --mount=target=. \
--mount=type=cache,target=/root/.cache/go-build \
--mount=type=cache,target=/go/pkg/mod \
USERARCH=`go env GOARCH` \
GOARCH="$TARGETARCH" \
GOOS="linux" \