From 94101b5b86a00ed2e10ec63690641b53bb98b035 Mon Sep 17 00:00:00 2001 From: doctorpangloss <@hiddenswitch.com> Date: Wed, 16 Jul 2025 15:49:53 -0700 Subject: [PATCH] not enough space for both nvidia and amd on the same builder --- .github/workflows/docker-build-amd.yml | 36 ++++++++++++++++++++++++++ .github/workflows/docker-build.yml | 11 +------- 2 files changed, 37 insertions(+), 10 deletions(-) create mode 100644 .github/workflows/docker-build-amd.yml diff --git a/.github/workflows/docker-build-amd.yml b/.github/workflows/docker-build-amd.yml new file mode 100644 index 000000000..c7acaee4a --- /dev/null +++ b/.github/workflows/docker-build-amd.yml @@ -0,0 +1,36 @@ +name: Build and Publish Docker Image (AMD) +on: + push: +env: + REGISTRY: ghcr.io + IMAGE_NAME: hiddenswitch/comfyui +jobs: + build: + runs-on: "ubuntu-latest" + permissions: + contents: read + packages: write + steps: + - uses: insightsengineering/disk-space-reclaimer@v1 + with: + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true + - uses: actions/checkout@v4 + - uses: docker/login-action@v3 + with: + registry: ${{ env.REGISTRY }} + username: ${{ github.actor }} + password: ${{ secrets.GITHUB_TOKEN }} + - name: Build and push ROCm (AMD) image + uses: docker/build-push-action@v6 + with: + context: . + file: ./amd.Dockerfile + push: true + tags: | + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-rocm + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-rocm \ No newline at end of file diff --git a/.github/workflows/docker-build.yml b/.github/workflows/docker-build.yml index 79b22383a..23f525a2c 100644 --- a/.github/workflows/docker-build.yml +++ b/.github/workflows/docker-build.yml @@ -35,13 +35,4 @@ jobs: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-cuda - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-cuda - - name: Build and push ROCm (AMD) image - uses: docker/build-push-action@v6 - with: - context: . - file: ./amd.Dockerfile - push: true - tags: | - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:latest-rocm - ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-rocm \ No newline at end of file + ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ github.sha }}-cuda \ No newline at end of file