@@ -169,7 +169,7 @@ jobs:
169169 uses : docker/build-push-action@v6
170170 env :
171171 DD_API_KEY : ${{ secrets.DD_API_KEY }}
172- DD_ENV : ${{ secrets.DD_ENV }}
172+ DD_ENV : ${{ inputs.dd-env }}
173173 ECR_REPOSITORY : ${{ inputs.ecr-repository }}
174174 ECR_REGISTRY : ${{ steps.login-ecr.outputs.registry }}
175175 with :
@@ -186,15 +186,14 @@ jobs:
186186 secrets : |
187187 "dd_api_key=${{ secrets.DD_API_KEY }}"
188188
189-
190- - name: Replace variables in task definition file
191- id: replace-variables
192- run: |
193- sed -i 's/<AWS_ACCOUNT_ID>/${{ inputs.aws-account-id }}/g' ${{ inputs.ecs-task-definition-path }}
194- sed -i 's/<ENV>/${{ inputs.environment }}/g' ${{ inputs.ecs-task-definition-path }}
195- sed -i 's/<SHORT_ENV>/${{ inputs.shortEnv }}/g' ${{ inputs.ecs-task-definition-path }}
196- sed -i 's/<CPU>/${{ inputs.ecs-cpu }}/g' ${{ inputs.ecs-task-definition-path }}
197- sed -i 's/<MEMORY>/${{ inputs.ecs-memory }}/g' ${{ inputs.ecs-task-definition-path }}
189+ - name : Replace variables in task definition file
190+ id : replace-variables
191+ run : |
192+ sed -i 's/<AWS_ACCOUNT_ID>/${{ inputs.aws-account-id }}/g' ${{ inputs.ecs-task-definition-path }}
193+ sed -i 's/<ENV>/${{ inputs.environment }}/g' ${{ inputs.ecs-task-definition-path }}
194+ sed -i 's/<SHORT_ENV>/${{ inputs.shortEnv }}/g' ${{ inputs.ecs-task-definition-path }}
195+ sed -i 's/<CPU>/${{ inputs.ecs-cpu }}/g' ${{ inputs.ecs-task-definition-path }}
196+ sed -i 's/<MEMORY>/${{ inputs.ecs-memory }}/g' ${{ inputs.ecs-task-definition-path }}
198197
199198 - name : Fill in the new image ID in the Amazon ECS task definition
200199 # Create a new task definition file with the image to be deployed
0 commit comments