mirror of
https://github.com/lllyasviel/Fooocus.git
synced 2026-08-16 13:13:16 +02:00
fix: container action run conditions
This commit is contained in:
@@ -2,7 +2,9 @@ name: Create and publish a container image
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: ['release']
|
||||
branches:
|
||||
- main
|
||||
pull_request:
|
||||
|
||||
env:
|
||||
REGISTRY: ghcr.io
|
||||
@@ -32,6 +34,10 @@ jobs:
|
||||
uses: docker/metadata-action@5.5.1
|
||||
with:
|
||||
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
|
||||
tags: |
|
||||
type=ref,event=branch
|
||||
type=ref,event=pr
|
||||
type=sha
|
||||
|
||||
- name: Build and push Docker image
|
||||
uses: docker/build-push-action@5.3.0
|
||||
|
||||
Reference in New Issue
Block a user