From e5bac6632909a5020b0708227ebe248b443c2c2b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 9 Sep 2021 17:52:49 +0900 Subject: [PATCH] Multi-platform image --- .github/workflows/docker.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 1c6ad343e3..3918a4f7df 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,20 +13,30 @@ jobs: steps: - name: Check out the repo uses: actions/checkout@v2 + + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Docker meta id: meta uses: docker/metadata-action@v3 with: images: misskey/misskey + - name: Log in to Docker Hub uses: docker/login-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} password: ${{ secrets.DOCKER_PASSWORD }} + - name: Build and Push to Docker Hub uses: docker/build-push-action@v2 with: context: . + platforms: linux/amd64,linux/arm64,linux/arm64/v7 push: true tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }}