diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index ec2e591..3962639 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -4,9 +4,15 @@ on: branches: main tags: - '*' + pull_request: + types: + closed + branches: + - 'main' jobs: push_to_registry: + if: github.event.pull_request.merged == true name: Push Docker image to GitHub Packages runs-on: ubuntu-latest steps: @@ -43,4 +49,4 @@ jobs: platforms: linux/amd64,linux/arm64 push: true tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} \ No newline at end of file + labels: ${{ steps.meta.outputs.labels }}