fix: container action run conditions

This commit is contained in:
xynydev 2024-04-24 21:20:40 +03:00
parent a6a71fe43e
commit 21bea9a040
1 changed files with 7 additions and 1 deletions

View File

@ -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