Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion Earthfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
VERSION 0.8

IMPORT github.com/formancehq/earthly:tags/v0.16.2 AS core
IMPORT github.com/formancehq/earthly:tags/v0.19.1 AS core

FROM core+base-image

CACHE --sharing=shared --id go-auth-cache /go/pkg/mod
CACHE --sharing=shared --id go-auth-cache /root/.cache/go-build

sources:
WORKDIR /src
COPY go.* .
Expand All @@ -14,6 +17,9 @@ sources:
compile:
FROM core+builder-image
COPY (+sources/*) /src

CACHE --id go-auth-cache /go/pkg/mod
CACHE --id go-auth-cache /root/.cache/go-build
WORKDIR /src
ARG VERSION=latest
DO --pass-args core+GO_COMPILE --VERSION=$VERSION
Expand Down