From 570485e186feed15c4ad0062933b20f2d66e934e Mon Sep 17 00:00:00 2001 From: iphydf Date: Fri, 18 Feb 2022 23:05:23 +0000 Subject: [PATCH] chore: Add docker image builds for windows cross compiler. --- .github/workflows/docker.yml | 42 ++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f3acf80885..d32e91a0ec 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -66,3 +66,45 @@ jobs: tags: toxchat/bootstrap-node:latest-websocket cache-from: type=registry,ref=toxchat/bootstrap-node:latest-websocket cache-to: type=inline + + docker-win32: + runs-on: ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + if: ${{ github.event_name == 'push' }} + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: "{{defaultContext}}:other/docker/windows" + push: ${{ github.event_name == 'push' }} + tags: toxchat/windows:win32 + cache-from: type=registry,ref=toxchat/windows:win32 + cache-to: type=inline + build-args: SUPPORT_ARCH_i686=true,SUPPORT_ARCH_x86_64=false,SUPPORT_TEST=true + + docker-win64: + runs-on: ubuntu-latest + steps: + - name: Set up Docker Buildx + uses: docker/setup-buildx-action@v1 + - name: Login to DockerHub + if: ${{ github.event_name == 'push' }} + uses: docker/login-action@v1 + with: + username: ${{ secrets.DOCKERHUB_USERNAME }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and push + uses: docker/build-push-action@v2 + with: + context: "{{defaultContext}}:other/docker/windows" + push: ${{ github.event_name == 'push' }} + tags: toxchat/windows:win64 + cache-from: type=registry,ref=toxchat/windows:win64 + cache-to: type=inline + build-args: SUPPORT_ARCH_i686=false,SUPPORT_ARCH_x86_64=true,SUPPORT_TEST=true