Multi-platform Earthly build must be in a target

add/first-example
mudler 2 years ago
parent 896da59b87
commit 291a8a6d2e
  1. 2
      .github/workflows/image.yml
  2. 3
      Earthfile

@ -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 }}

@ -38,3 +38,6 @@ image:
ENV MODEL_PATH=/model.bin
ENTRYPOINT /llama-cli
SAVE IMAGE --push $IMAGE
image-all:
BUILD --platform=linux/amd64 --platform=linux/arm64 +image
Loading…
Cancel
Save