client-node_comfyui-setup #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |