Skip to content

Commit

Permalink
deploy-production.yml: check against github.event_name
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Dec 14, 2023
1 parent 328115d commit 8ea28ad
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/deploy-production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
echo "image_tag=${tag//\v/}" >> $GITHUB_OUTPUT
- name: Build and Push Docker Image
if: ${{ github.event != 'workflow_dispatch' }}
if: ${{ github.event_name != 'workflow_dispatch' }}
id: build_and_push
uses: docker/build-push-action@v5
with:
Expand All @@ -57,7 +57,7 @@ jobs:

# For manually triggered runs, grab the image digest from the already built image
- name: Get Digest from Tagged Image
if: ${{ github.event == 'workflow_dispatch' }}
if: ${{ github.event_name == 'workflow_dispatch' }}
id: get_digest_from_tagged_image
run: |
image_digest=$(aws ecr describe-images
Expand Down

0 comments on commit 8ea28ad

Please sign in to comment.