Skip to content

Commit

Permalink
trigger_deploy.yml: fix permissions and allow empty value for digest
Browse files Browse the repository at this point in the history
  • Loading branch information
digorgonzola committed Feb 27, 2024
1 parent 6ec2054 commit 4dbe77d
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 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,12 +25,16 @@ on:
required: true
type: string
digest:
required: true
required: false
type: string
environment:
required: true
type: string

permissions:
id-token: write
contents: read

jobs:
trigger_deploy:
runs-on: ubuntu-latest
Expand All @@ -44,6 +48,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 4dbe77d

Please sign in to comment.