diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index ee51614..4f8b045 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -17,6 +17,7 @@ env: REGISTRY: ghcr.io # github.repository as / IMAGE_NAME: ${{ github.repository }} + PLATFORMS: linux/amd64,linux/arm64 jobs: @@ -48,7 +49,7 @@ jobs: - name: Set up Docker Buildx uses: docker/setup-buildx-action@v3.0.0 with: - platforms: linux/amd64,linux/arm64 + platforms: ${{ env.PLATFORMS }} # Login against a Docker registry except on PR # https://github.com/docker/login-action @@ -82,6 +83,7 @@ jobs: push: ${{ github.event_name != 'pull_request' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} + platforms: ${{ env.PLATFORMS }} cache-from: type=gha cache-to: type=gha,mode=max