Skip to content

Commit

Permalink
feat: add Github Action to build ComfyUI dev container
Browse files Browse the repository at this point in the history
  • Loading branch information
tinovyatkin committed Jan 16, 2025
1 parent 3cc43a5 commit 9579d6e
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/comfyui-dev-container.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Build and Push ComfyUI Dev Container

on:
push:
paths:
- ".github/workflows/comfyui-dev-container.yml"
- "ComfyUI/Dockerfile.local-cpu"
workflow_dispatch:

jobs:
build-and-push:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4

- name: Log in to GitHub Container Registry
uses: docker/login-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build and Push ComfyUI Dev Container' step
Uses Step
uses 'docker/login-action' with ref 'v3', not a pinned commit hash
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build and Push ComfyUI Dev Container' step
Uses Step
uses 'docker/setup-qemu-action' with ref 'v3', not a pinned commit hash

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build and Push ComfyUI Dev Container' step
Uses Step
uses 'docker/setup-buildx-action' with ref 'v3', not a pinned commit hash

- name: Build and push
uses: docker/build-push-action@v6

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Build and Push ComfyUI Dev Container' step
Uses Step
uses 'docker/build-push-action' with ref 'v6', not a pinned commit hash
with:
context: ComfyUI
file: Dockerfile.local-cpu
push: true
provenance: true
platforms: linux/amd64,linux/arm64
tags: ghcr.io/${{ github.repository }}/comfyui-composer:latest

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions Job or Workflow does not set permissions

0 comments on commit 9579d6e

Please sign in to comment.