From a68487af7607c51c6ed97fd0638400971da6d6f1 Mon Sep 17 00:00:00 2001 From: Mitch Ross Date: Thu, 24 Oct 2024 17:50:02 -0400 Subject: [PATCH] Update docker-publish.yml --- .github/workflows/docker-publish.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index 3954e76b..6c0f5c0d 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -5,13 +5,18 @@ on: - cron: '34 6 * * *' push: branches: [ "main" ] + paths: + - 'docker/**' + - '.github/workflows/docker-publish.yml' tags: [ 'v*.*.*' ] pull_request: branches: [ "main" ] + paths: + - 'docker/**' + - '.github/workflows/docker-publish.yml' env: REGISTRY: ghcr.io - # Customize the image name to specifically mention comfyui IMAGE_NAME: ${{ github.repository }}-comfyui jobs: @@ -48,7 +53,6 @@ jobs: uses: docker/metadata-action@96383f45573cb7f253c731d3b3ab81c87ef81934 with: images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }} - # Customize the tags tags: | type=raw,value=latest,enable={{is_default_branch}} type=ref,event=branch