From dddfd6668701bf518384247c177d176ec795ca0d Mon Sep 17 00:00:00 2001 From: Stefan Hattrell <29941279+digorgonzola@users.noreply.github.com> Date: Tue, 27 Feb 2024 17:48:22 +1100 Subject: [PATCH] trigger_deploy.yml: allow empty value for digest supports future applications that do not use it and allows fallback to image tag (if specified) --- .github/workflows/trigger_deploy.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trigger_deploy.yml b/.github/workflows/trigger_deploy.yml index b4d9024..4c0ee16 100644 --- a/.github/workflows/trigger_deploy.yml +++ b/.github/workflows/trigger_deploy.yml @@ -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: @@ -25,7 +25,7 @@ on: required: true type: string digest: - required: true + required: false type: string environment: required: true @@ -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" \