File tree 3 files changed +15
-14
lines changed
3 files changed +15
-14
lines changed Original file line number Diff line number Diff line change @@ -58,16 +58,18 @@ jobs:
58
58
- name : Format SSM Parameters
59
59
id : format-secrets
60
60
run : |
61
- FORMATTED_SECRETS=$(ruby bin/format_aws_secrets.rb ${{ steps.ssm-download.outputs.parameters }})
62
- echo "formatted_secrets=${FORMATTED_SECRETS}" >> $GITHUB_OUTPUT
61
+ echo ' ${{ steps.ssm-download.outputs.parameters }}' > params.json
62
+ ./bin/format_aws_secrets params.json
63
63
64
64
- name : Fill in the new image ID in the Amazon ECS task definition
65
65
id : task-def
66
- uses : aws-actions/amazon-ecs-render-task-definition@v1
66
+ uses : aws-actions/amazon-ecs-render-task-definition@v1.7.0
67
67
with :
68
68
task-definition : ${{ vars.ECS_TASK_DEFINITION_PATH }}
69
69
container-name : ${{ vars.CONTAINER_NAME }}
70
70
image : ${{ steps.image-digest.outputs.image }}
71
+ environment-variables : |
72
+ DUMMY=DUMMY
71
73
secrets : |
72
74
${{ steps.format-secrets.outputs.formatted_secrets }}
73
75
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+
3
+ PARAMS_JSON=$( cat " $1 " )
4
+
5
+ FORMATTED_SECRETS=$( echo " $PARAMS_JSON " | jq -r ' .[] | "\(.Name | split("/")[-1] | ascii_upcase)=\(.ARN)"' )
6
+ {
7
+ echo " formatted_secrets<<EOF"
8
+ echo -e " $FORMATTED_SECRETS "
9
+ echo " EOF"
10
+ } >> " $GITHUB_OUTPUT "
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments