From 429e9be933e762d732c096b495cdf2959cc76450 Mon Sep 17 00:00:00 2001 From: Dimitris Karakasilis Date: Mon, 2 Oct 2023 17:17:01 +0300 Subject: [PATCH] Add earthly target to build the enki image Signed-off-by: Dimitris Karakasilis --- tools-image/enki/Earthfile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/tools-image/enki/Earthfile b/tools-image/enki/Earthfile index 2a95ee4..cb23058 100644 --- a/tools-image/enki/Earthfile +++ b/tools-image/enki/Earthfile @@ -11,7 +11,18 @@ build: ENV CGO_ENABLED=0 RUN go build -ldflags '-extldflags "-static"' - SAVE ARTIFACT enki AS LOCAL build/enki + SAVE ARTIFACT /build/enki enki AS LOCAL build/enki + +build-kaniko-enki-image: + FROM gcr.io/kaniko-project/executor:latest + + COPY +build/enki /enki + + ENTRYPOINT ["/enki"] + + CMD ["convert"] + + SAVE IMAGE enki:latest test: FROM golang:$GO_VERSION