diff --git a/.github/workflows/build-and-push-docker.yaml b/.github/workflows/build-and-push-docker.yaml index 6cf27166..961b5b1c 100644 --- a/.github/workflows/build-and-push-docker.yaml +++ b/.github/workflows/build-and-push-docker.yaml @@ -1,12 +1,15 @@ name: Build and Push Docker Images on: - push: + pull_request: + types: + - closed branches: - main jobs: build-and-push-image: + if: github.event.pull_request.merged == true runs-on: ubuntu-latest steps: