Skip to content

Commit a1ad9c7

Browse files
Merge pull request #5 from higgsfield-ai/feat/platform
feat: add multiplatform build
2 parents 5853619 + 9cb4d94 commit a1ad9c7

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

build/action.yaml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -33,23 +33,11 @@ runs:
3333

3434
- uses: docker/setup-buildx-action@v3
3535

36-
- uses: actions/cache@v4
37-
with:
38-
path: /tmp/.buildx-cache
39-
key: ${{ runner.os }}-buildx-${{ github.sha }}
40-
restore-keys: ${{ runner.os }}-buildx-
41-
4236
- shell: bash
4337
env:
4438
IMAGE: ${{ steps.ecr-login.outputs.registry }}/${{ inputs.aws-ecr-repository }}:${{ github.sha }}
4539
run: |
46-
docker buildx create --use
47-
docker buildx build . \
48-
--cache-from=type=local,src=/tmp/.buildx-cache \
49-
--cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \
50-
--tag $IMAGE \
51-
--file docker/Dockerfile \
52-
--push
40+
docker build . -t $IMAGE -f docker/Dockerfile --platform linux/amd64,linux/arm64
5341
docker push $IMAGE
5442
echo "image=$IMAGE" >> $GITHUB_OUTPUT
5543
id: build-and-push

0 commit comments

Comments
 (0)