From 282aeb015a46b75c85967ab414a224c7a07dfc68 Mon Sep 17 00:00:00 2001 From: Andrei Sorokin Date: Mon, 18 Mar 2024 06:16:31 +0100 Subject: [PATCH] build also for Apple Silicone --- .github/workflows/dockerhub.yml | 6 ++++++ activate.sh | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dockerhub.yml b/.github/workflows/dockerhub.yml index ce23dd1..f7e0e9e 100644 --- a/.github/workflows/dockerhub.yml +++ b/.github/workflows/dockerhub.yml @@ -18,6 +18,9 @@ jobs: - name: Checkout uses: actions/checkout@v4 + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 + - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3 @@ -36,6 +39,9 @@ jobs: tags: ${{ secrets.DOCKER_HUB_USERNAME }}/amazon-dash-button-hack:latest cache-from: type=registry,ref=user/app:latest cache-to: type=inline + platforms: |- + linux/amd64 + linux/arm64 - name: Image digest run: echo ${{ steps.docker_build.outputs.digest }} diff --git a/activate.sh b/activate.sh index f1a80ce..375c5e6 100755 --- a/activate.sh +++ b/activate.sh @@ -4,7 +4,7 @@ # VENV_FOLDER="venv" -PYTHON="python3.11" +PYTHON="python3.11" # sync with python-version: '3.11' in .github/workflows/docs.yml,static.yml RED='\033[1;31m' GREEN='\033[1;32m'