From 85276352f656915304de58e94e728039093dc566 Mon Sep 17 00:00:00 2001 From: Daniel Brendel Date: Sat, 30 Mar 2024 10:03:12 +0100 Subject: [PATCH] #141 Use buildx --- .github/workflows/publish-ghcr.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/publish-ghcr.yaml b/.github/workflows/publish-ghcr.yaml index b7faf324..eadbab9c 100644 --- a/.github/workflows/publish-ghcr.yaml +++ b/.github/workflows/publish-ghcr.yaml @@ -10,9 +10,10 @@ jobs: build_and_publish: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - uses: docker/setup-buildx-action@v3 - name: Build and push the image run: | docker login --username danielbrendel --password ${{ secrets.GH_CONTAINER_REGISTRY }} ghcr.io - docker build . --tag ghcr.io/danielbrendel/hortusfox-web:latest --tag ghcr.io/danielbrendel/hortusfox-web:${{ github.ref_name }} + docker buildx build . --platform linux/arm/v7,linux/arm64/v8,linux/amd64 --tag ghcr.io/danielbrendel/hortusfox-web:latest --tag ghcr.io/danielbrendel/hortusfox-web:${{ github.ref_name }} docker push --all-tags ghcr.io/danielbrendel/hortusfox-web