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