diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 5241035..29d89de 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -60,37 +60,37 @@ jobs: with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Build and push Docker image for x86 - - name: Build and push Docker image for x86 - id: build-and-push-x86 - if: ${{ github.event_name != 'pull_request' }} - uses: docker/build-push-action@v5.0.0 - with: - context: . - build-args: | - LATEST_TAG=${{ env.LATEST_TAG }} - push: false - platforms: linux/amd64 - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }} - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max - - # Build and push Docker image for ARM - - name: Build and push Docker image for ARM - id: build-and-push-arm - if: ${{ github.event_name != 'pull_request' }} - uses: docker/build-push-action@v5.0.0 - with: - context: . - build-args: | - LATEST_TAG=${{ env.LATEST_TAG }} - push: false - platforms: linux/arm64 - tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }}-arm - labels: ${{ steps.meta.outputs.labels }} - cache-from: type=gha - cache-to: type=gha,mode=max + # # Build and push Docker image for x86 + # - name: Build and push Docker image for x86 + # id: build-and-push-x86 + # if: ${{ github.event_name != 'pull_request' }} + # uses: docker/build-push-action@v5.0.0 + # with: + # context: . + # build-args: | + # LATEST_TAG=${{ env.LATEST_TAG }} + # push: false + # platforms: linux/amd64 + # tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }} + # labels: ${{ steps.meta.outputs.labels }} + # cache-from: type=gha + # cache-to: type=gha,mode=max + + # # Build and push Docker image for ARM + # - name: Build and push Docker image for ARM + # id: build-and-push-arm + # if: ${{ github.event_name != 'pull_request' }} + # uses: docker/build-push-action@v5.0.0 + # with: + # context: . + # build-args: | + # LATEST_TAG=${{ env.LATEST_TAG }} + # push: false + # platforms: linux/arm64 + # tags: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ env.LATEST_TAG }}-arm + # labels: ${{ steps.meta.outputs.labels }} + # cache-from: type=gha + # cache-to: type=gha,mode=max # Build and push Docker image for x86 (for pull requests) - name: Build and push Docker image for x86 (PR)