From 21bea9a0403c5cefe314fa9836abc9a676f9e714 Mon Sep 17 00:00:00 2001 From: xynydev <60004820+xynydev@users.noreply.github.com> Date: Wed, 24 Apr 2024 21:20:40 +0300 Subject: [PATCH] fix: container action run conditions --- .github/workflows/build_container.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build_container.yml b/.github/workflows/build_container.yml index 27509bff..7550e45b 100644 --- a/.github/workflows/build_container.yml +++ b/.github/workflows/build_container.yml @@ -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