Skip to content

client-node_comfyui-setup #5

client-node_comfyui-setup

client-node_comfyui-setup #5

name: publish client-node docker images to ghcr.io
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
publish_client-node-comfyui_image:
runs-on: ubuntu-latest
# `GITHUB_TOKEN` permissions for the actions in this job
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- name: log in to the container registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- name: extract metadata (tags, labels) for docker
id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- name: build and push docker image
uses: docker/build-push-action@v5
with:
context: .
file: client-node-comfyui.dockerfile
tags: ${{ steps.meta.outputs.tags }}
labels: comfyui-gpu
push: true
provenance: false