From 037c5a4c8b0dc19d89a219a72412e152013a8612 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 7 Jan 2026 08:11:51 +0100 Subject: [PATCH 1/5] feat: add CI container version bump automation Adds a workflow that triggers on releases to create PRs in the comfyui-ci-container repo, updating the ComfyUI version in the Dockerfile. Supports both release events and manual workflow dispatch for testing. --- .github/workflows/update-ci-container.yaml | 62 ++++++++++++++++++++++ 1 file changed, 62 insertions(+) create mode 100644 .github/workflows/update-ci-container.yaml diff --git a/.github/workflows/update-ci-container.yaml b/.github/workflows/update-ci-container.yaml new file mode 100644 index 000000000..f556c8184 --- /dev/null +++ b/.github/workflows/update-ci-container.yaml @@ -0,0 +1,62 @@ +name: "CI: Update CI Container" + +on: + release: + types: [published] + workflow_dispatch: + inputs: + version: + description: 'ComfyUI version (e.g., v0.7.0)' + required: true + type: string + +jobs: + update-ci-container: + runs-on: ubuntu-latest + # Skip pre-releases unless manually triggered + if: github.event_name == 'workflow_dispatch' || !github.event.release.prerelease + steps: + - name: Get version + id: version + run: | + if [ "${{ github.event_name }}" = "release" ]; then + VERSION="${{ github.event.release.tag_name }}" + else + VERSION="${{ inputs.version }}" + fi + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: Checkout comfyui-ci-container + uses: actions/checkout@v4 + with: + repository: Myestery/comfyui-ci-container + token: ${{ secrets.CI_CONTAINER_PAT }} + + - name: Check current version + id: current + run: | + CURRENT=$(grep -oP 'ARG COMFYUI_VERSION=\K.*' Dockerfile || echo "unknown") + echo "current_version=$CURRENT" >> $GITHUB_OUTPUT + + - name: Update Dockerfile + run: | + VERSION="${{ steps.version.outputs.version }}" + sed -i "s/^ARG COMFYUI_VERSION=.*/ARG COMFYUI_VERSION=${VERSION}/" Dockerfile + + - name: Create Pull Request + id: create-pr + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.CI_CONTAINER_PAT }} + branch: automation/comfyui-${{ steps.version.outputs.version }} + title: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}" + body: | + Updates ComfyUI version from `${{ steps.current.outputs.current_version }}` to `${{ steps.version.outputs.version }}` + + **Triggered by:** ${{ github.event_name == 'release' && format('[Release {0}]({1})', github.event.release.tag_name, github.event.release.html_url) || 'Manual workflow dispatch' }} + + **After merging:** + 1. Create a new release tag to publish the updated container + 2. Update frontend's `ci-tests-e2e.yaml` container reference if needed + labels: automation + commit-message: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}" From eab7088f9b9361c4d5952ec93da8d77c66e42e5a Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 7 Jan 2026 08:59:05 +0100 Subject: [PATCH 2/5] feat: add CI container version bump automation Adds a workflow that triggers on releases to create PRs in the comfyui-ci-container repo, updating the ComfyUI version in the Dockerfile. Supports both release events and manual workflow dispatch for testing. --- .github/workflows/update-ci-container.yml | 58 +++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 .github/workflows/update-ci-container.yml diff --git a/.github/workflows/update-ci-container.yml b/.github/workflows/update-ci-container.yml new file mode 100644 index 000000000..ae20c03bc --- /dev/null +++ b/.github/workflows/update-ci-container.yml @@ -0,0 +1,58 @@ +name: "CI: Update CI Container" + +on: + release: + types: [published] + workflow_dispatch: + inputs: + version: + description: 'ComfyUI version (e.g., v0.7.0)' + required: true + type: string + +jobs: + update-ci-container: + runs-on: ubuntu-latest + # Skip pre-releases unless manually triggered + if: github.event_name == 'workflow_dispatch' || !github.event.release.prerelease + steps: + - name: Get version + id: version + run: | + if [ "${{ github.event_name }}" = "release" ]; then + VERSION="${{ github.event.release.tag_name }}" + else + VERSION="${{ inputs.version }}" + fi + echo "version=$VERSION" >> $GITHUB_OUTPUT + + - name: Checkout comfyui-ci-container + uses: actions/checkout@v4 + with: + repository: comfy-org/comfyui-ci-container + token: ${{ secrets.CI_CONTAINER_PAT }} + + - name: Check current version + id: current + run: | + CURRENT=$(grep -oP 'ARG COMFYUI_VERSION=\K.*' Dockerfile || echo "unknown") + echo "current_version=$CURRENT" >> $GITHUB_OUTPUT + + - name: Update Dockerfile + run: | + VERSION="${{ steps.version.outputs.version }}" + sed -i "s/^ARG COMFYUI_VERSION=.*/ARG COMFYUI_VERSION=${VERSION}/" Dockerfile + + - name: Create Pull Request + id: create-pr + uses: peter-evans/create-pull-request@v7 + with: + token: ${{ secrets.CI_CONTAINER_PAT }} + branch: automation/comfyui-${{ steps.version.outputs.version }} + title: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}" + body: | + Updates ComfyUI version from `${{ steps.current.outputs.current_version }}` to `${{ steps.version.outputs.version }}` + + **Triggered by:** ${{ github.event_name == 'release' && format('[Release {0}]({1})', github.event.release.tag_name, github.event.release.html_url) || 'Manual workflow dispatch' }} + labels: automation + commit-message: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}" From 02ac8e4e167794db2a8820e87ddc4d1e479cc91d Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 7 Jan 2026 09:11:14 +0100 Subject: [PATCH 3/5] ci: update CI container repository owner --- .github/workflows/update-ci-container.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-ci-container.yaml b/.github/workflows/update-ci-container.yaml index f556c8184..1a81955c3 100644 --- a/.github/workflows/update-ci-container.yaml +++ b/.github/workflows/update-ci-container.yaml @@ -29,7 +29,7 @@ jobs: - name: Checkout comfyui-ci-container uses: actions/checkout@v4 with: - repository: Myestery/comfyui-ci-container + repository: comfy-org/comfyui-ci-container token: ${{ secrets.CI_CONTAINER_PAT }} - name: Check current version From 3b3fc70454cfd3b1f3090408bca7ec06cf0496ed Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 7 Jan 2026 09:12:35 +0100 Subject: [PATCH 4/5] refactor: rename `update-ci-container.yaml` workflow to `update-ci-container.yml` --- .github/workflows/update-ci-container.yaml | 62 ---------------------- .github/workflows/update-ci-container.yml | 4 ++ 2 files changed, 4 insertions(+), 62 deletions(-) delete mode 100644 .github/workflows/update-ci-container.yaml diff --git a/.github/workflows/update-ci-container.yaml b/.github/workflows/update-ci-container.yaml deleted file mode 100644 index 1a81955c3..000000000 --- a/.github/workflows/update-ci-container.yaml +++ /dev/null @@ -1,62 +0,0 @@ -name: "CI: Update CI Container" - -on: - release: - types: [published] - workflow_dispatch: - inputs: - version: - description: 'ComfyUI version (e.g., v0.7.0)' - required: true - type: string - -jobs: - update-ci-container: - runs-on: ubuntu-latest - # Skip pre-releases unless manually triggered - if: github.event_name == 'workflow_dispatch' || !github.event.release.prerelease - steps: - - name: Get version - id: version - run: | - if [ "${{ github.event_name }}" = "release" ]; then - VERSION="${{ github.event.release.tag_name }}" - else - VERSION="${{ inputs.version }}" - fi - echo "version=$VERSION" >> $GITHUB_OUTPUT - - - name: Checkout comfyui-ci-container - uses: actions/checkout@v4 - with: - repository: comfy-org/comfyui-ci-container - token: ${{ secrets.CI_CONTAINER_PAT }} - - - name: Check current version - id: current - run: | - CURRENT=$(grep -oP 'ARG COMFYUI_VERSION=\K.*' Dockerfile || echo "unknown") - echo "current_version=$CURRENT" >> $GITHUB_OUTPUT - - - name: Update Dockerfile - run: | - VERSION="${{ steps.version.outputs.version }}" - sed -i "s/^ARG COMFYUI_VERSION=.*/ARG COMFYUI_VERSION=${VERSION}/" Dockerfile - - - name: Create Pull Request - id: create-pr - uses: peter-evans/create-pull-request@v7 - with: - token: ${{ secrets.CI_CONTAINER_PAT }} - branch: automation/comfyui-${{ steps.version.outputs.version }} - title: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}" - body: | - Updates ComfyUI version from `${{ steps.current.outputs.current_version }}` to `${{ steps.version.outputs.version }}` - - **Triggered by:** ${{ github.event_name == 'release' && format('[Release {0}]({1})', github.event.release.tag_name, github.event.release.html_url) || 'Manual workflow dispatch' }} - - **After merging:** - 1. Create a new release tag to publish the updated container - 2. Update frontend's `ci-tests-e2e.yaml` container reference if needed - labels: automation - commit-message: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}" diff --git a/.github/workflows/update-ci-container.yml b/.github/workflows/update-ci-container.yml index ae20c03bc..1a81955c3 100644 --- a/.github/workflows/update-ci-container.yml +++ b/.github/workflows/update-ci-container.yml @@ -54,5 +54,9 @@ jobs: Updates ComfyUI version from `${{ steps.current.outputs.current_version }}` to `${{ steps.version.outputs.version }}` **Triggered by:** ${{ github.event_name == 'release' && format('[Release {0}]({1})', github.event.release.tag_name, github.event.release.html_url) || 'Manual workflow dispatch' }} + + **After merging:** + 1. Create a new release tag to publish the updated container + 2. Update frontend's `ci-tests-e2e.yaml` container reference if needed labels: automation commit-message: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}" From 23e3c79c856360aeb960228542394f19e3b6c473 Mon Sep 17 00:00:00 2001 From: Johnpaul Date: Wed, 7 Jan 2026 09:13:12 +0100 Subject: [PATCH 5/5] Remove post-merge instructions from the CI container update workflow. --- .github/workflows/update-ci-container.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.github/workflows/update-ci-container.yml b/.github/workflows/update-ci-container.yml index 1a81955c3..f7972e056 100644 --- a/.github/workflows/update-ci-container.yml +++ b/.github/workflows/update-ci-container.yml @@ -55,8 +55,5 @@ jobs: **Triggered by:** ${{ github.event_name == 'release' && format('[Release {0}]({1})', github.event.release.tag_name, github.event.release.html_url) || 'Manual workflow dispatch' }} - **After merging:** - 1. Create a new release tag to publish the updated container - 2. Update frontend's `ci-tests-e2e.yaml` container reference if needed labels: automation commit-message: "chore: bump ComfyUI to ${{ steps.version.outputs.version }}"