Skip to content

Commit

Permalink
trigger_deploy.yml: allow empty value for digest
Browse files Browse the repository at this point in the history
supports future applications that do not use it and allows fallback to image tag (if specified)
  • Loading branch information
digorgonzola committed Feb 27, 2024
1 parent cd71ba1 commit dddfd66
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/trigger_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
- staging
- production
digest:
required: true
required: false
description: The image digest to pass to the deploy job.
type: string
workflow_call:
Expand All @@ -25,7 +25,7 @@ on:
required: true
type: string
digest:
required: true
required: false
type: string
environment:
required: true
Expand All @@ -44,6 +44,7 @@ jobs:
role-to-assume: ${{ vars.AWS_ROLE_ARN }}

- name: Push Image Digest to SSM
if: ${{ inputs.digest != '' }}
run: |
aws ssm put-parameter \
--name "/apps/${{ inputs.app_name }}/${{ inputs.environment }}/image_digest" \
Expand Down

0 comments on commit dddfd66

Please sign in to comment.