From e8699785161028e8d1ff23eedf23ffcd289bab6e Mon Sep 17 00:00:00 2001 From: Kashif Sohail Date: Sun, 12 Dec 2021 20:10:07 +0500 Subject: [PATCH] Multi-arch image push --- .github/workflows/docker-image.yml | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index c646508a..74068008 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -16,14 +16,7 @@ jobs: - name: Set up Docker Buildx uses: crazy-max/ghaction-docker-buildx@v1 with: - version: latest - - name: Prepare - if: success() - id: prepare - run: | - echo ::set-output name=docker_platform::${TARGETPLATFORM} - echo ::set-output name=docker_image::${DOCKER_REGISTRY}/${DOCKER_IMAGE} - echo ::set-output name=version::${GITHUB_RUN_NUMBER} + version: latest - name: Docker Login if: success() run: | @@ -31,6 +24,6 @@ jobs: - name: Run Buildx (push image) if: success() run: | - docker buildx build --platform ${{ steps.prepare.outputs.docker_platform }} --tag kshfse/dashy:latest --build-arg TARGETPLATFORM=${TARGETPLATFORM} --file ./docker/Dockerfile-multi-arch --output type=image,push=true . + docker buildx build --platform linux/arm/v7 --tag kshfse/dashy:latest --build-arg TARGETPLATFORM=${TARGETPLATFORM} --file ./docker/Dockerfile-multi-arch --output type=image,push=true . - docker buildx build --platform ${{ steps.prepare.outputs.docker_platform }} --tag kshfse/dashy:latest --build-arg TARGETPLATFORM=linux/arm64 --file ./docker/Dockerfile-multi-arch --output type=image,push=true . + docker buildx build --platform linux/arm64 --tag kshfse/dashy:latest --build-arg TARGETPLATFORM=linux/arm64 --file ./docker/Dockerfile-multi-arch --output type=image,push=true .