From dcc8412ef7bc3256f05dfcfbd06d749d813113f4 Mon Sep 17 00:00:00 2001 From: Michael Collins <15347726+michaeljcollinsuk@users.noreply.github.com> Date: Fri, 22 Mar 2024 15:20:21 +0000 Subject: [PATCH] Update GitHub actions workflow to trigger build/deploy only when releases (#1274) Update GitHub actions workflow to trigger build/deploy only when release is published --- .github/workflows/test-and-push-docker-image.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test-and-push-docker-image.yaml b/.github/workflows/test-and-push-docker-image.yaml index be7b0dec3..024a5aa82 100644 --- a/.github/workflows/test-and-push-docker-image.yaml +++ b/.github/workflows/test-and-push-docker-image.yaml @@ -5,6 +5,7 @@ name: Run tests and push Docker image on success branches: [main] pull_request: release: + types: [published] jobs: test-and-push: @@ -38,7 +39,7 @@ jobs: uses: aws-actions/amazon-ecr-login@v1 with: registries: 593291632749 - + - name: Prep Tags id: prep run: |