diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 65c45c08..7ecd4441 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -13,16 +13,18 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 with: submodules: ${{ ! (github.event_name == 'release' && github.event.action == 'published') }} + - name: Set up QEMU + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + uses: docker/setup-buildx-action@v3 - name: Docker meta id: meta - uses: docker/metadata-action@v4 + uses: docker/metadata-action@v5 with: images: ghcr.io/${{ github.repository_owner }}/taxhub tags: | @@ -30,7 +32,7 @@ jobs: type=ref,event=tag - name: Login to GHCR - uses: docker/login-action@v2 + uses: docker/login-action@v3 if: github.event_name != 'pull_request' with: registry: ghcr.io @@ -38,9 +40,10 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Build and export - uses: docker/build-push-action@v3 + uses: docker/build-push-action@v5 with: context: . + platforms: linux/amd64,linux/arm64 target: prod build-args: DEPS=${{ (github.event_name == 'release' && github.event.action == 'published') && 'pypi' || 'build' }}