diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index a3b8b4c5e..5307fffb8 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -203,6 +203,7 @@ jobs: with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} + - name: Build and Push to Docker Hub uses: docker/build-push-action@v6 with: @@ -210,8 +211,9 @@ jobs: push: true file: ${{ needs.setup.outputs.file }} tags: ${{ needs.setup.outputs.docker_tags }} - # provenance: false will result in a single manifest for all platforms which makes the image pullable from arm64 machines via the emulation (e.g. Apple Silicon machines) - provenance: false + platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max - name: Login to Github Container Registry uses: docker/login-action@v3 @@ -219,6 +221,7 @@ jobs: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.TEMP_GHCR_TOKEN}} + - name: Build and push to Github Container Registry uses: docker/build-push-action@v6 with: @@ -226,8 +229,9 @@ jobs: push: true file: ${{ needs.setup.outputs.file }} tags: ${{ needs.setup.outputs.ghcr_tags }} - # provenance: false will result in a single manifest for all platforms which makes the image pullable from arm64 machines via the emulation (e.g. Apple Silicon machines) - provenance: false + platforms: linux/amd64,linux/arm64 + cache-from: type=gha + cache-to: type=gha,mode=max build_components: if: ${{ inputs.release_type == 'main' }}