We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3d415dc commit 902756bCopy full SHA for 902756b
1 file changed
Earthfile
@@ -1,9 +1,12 @@
1
VERSION 0.8
2
3
-IMPORT github.com/formancehq/earthly:tags/v0.16.2 AS core
+IMPORT github.com/formancehq/earthly:tags/v0.19.1 AS core
4
5
FROM core+base-image
6
7
+CACHE --sharing=shared --id go-auth-cache /go/pkg/mod
8
+CACHE --sharing=shared --id go-auth-cache /root/.cache/go-build
9
+
10
sources:
11
WORKDIR /src
12
COPY go.* .
@@ -14,6 +17,9 @@ sources:
14
17
compile:
15
18
FROM core+builder-image
16
19
COPY (+sources/*) /src
20
21
+ CACHE --id go-auth-cache /go/pkg/mod
22
+ CACHE --id go-auth-cache /root/.cache/go-build
23
24
ARG VERSION=latest
25
DO --pass-args core+GO_COMPILE --VERSION=$VERSION
0 commit comments