fix: container action run conditions
This commit is contained in:
parent
a6a71fe43e
commit
21bea9a040
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue