From 291a8a6d2edf72b58bf7d18ca61275eaacd6f1f7 Mon Sep 17 00:00:00 2001 From: mudler Date: Sun, 19 Mar 2023 23:52:00 +0100 Subject: [PATCH] Multi-platform Earthly build must be in a target --- .github/workflows/image.yml | 2 +- Earthfile | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/image.yml b/.github/workflows/image.yml index 1af0431..ad633a6 100644 --- a/.github/workflows/image.yml +++ b/.github/workflows/image.yml @@ -54,4 +54,4 @@ jobs: version: v0.7.0 - name: Build run: | - earthly --platform=linux/amd64 --platform=linux/arm64 --push +image --IMAGE=${{ steps.prep.outputs.image }} + earthly --push +image-all --IMAGE=${{ steps.prep.outputs.image }} diff --git a/Earthfile b/Earthfile index 3388104..2023462 100644 --- a/Earthfile +++ b/Earthfile @@ -37,4 +37,7 @@ image: COPY +build/llama-cli /llama-cli ENV MODEL_PATH=/model.bin ENTRYPOINT /llama-cli - SAVE IMAGE --push $IMAGE \ No newline at end of file + SAVE IMAGE --push $IMAGE + +image-all: + BUILD --platform=linux/amd64 --platform=linux/arm64 +image \ No newline at end of file