From 6fa7481911122eec2ae7d588dbfbe1c6979df328 Mon Sep 17 00:00:00 2001 From: Sam Gross Date: Wed, 21 Feb 2024 22:16:30 +0000 Subject: [PATCH] Move arm64 Dockerfile and update workflow --- .github/workflows/publish-docker.yml | 23 ++++++++++---------- docker/{DockerfileARM64 => arm64/Dockerfile} | 0 2 files changed, 11 insertions(+), 12 deletions(-) rename docker/{DockerfileARM64 => arm64/Dockerfile} (100%) diff --git a/.github/workflows/publish-docker.yml b/.github/workflows/publish-docker.yml index d826df9af3..c6637a8a7e 100644 --- a/.github/workflows/publish-docker.yml +++ b/.github/workflows/publish-docker.yml @@ -7,10 +7,18 @@ on: jobs: push_to_registry: + strategy: + fail-fast: false + matrix: + include: + - tag: "nogil/python:latest" + dockerfile: "docker/Dockerfile" + - tag: "nogil/python-arm64:latest" + dockerfile: "docker/arm64/Dockerfile" + name: Push Docker image to Docker Hub runs-on: ubuntu-latest steps: - - name: Check out the repo uses: actions/checkout@v3 @@ -24,18 +32,9 @@ jobs: uses: docker/build-push-action@v3 with: context: . - file: docker/Dockerfile + file: ${{ matrix.dockerfile }} build-args: | commit=${{ github.sha }} push: true - tags: nogil/python:latest + tags: ${{ matrix.tag }} - - name: Build and push Docker image for ARM64 devices - uses: docker/build-push-action@v3 - with: - context: . - file: docker/DockerfileARM64 - build-args: | - commit=${{ github.sha }} - push: true - tags: nogil/python-arm64:latest diff --git a/docker/DockerfileARM64 b/docker/arm64/Dockerfile similarity index 100% rename from docker/DockerfileARM64 rename to docker/arm64/Dockerfile