From 2f72ff74deb2c6921b1e60342634400bdef7ac7e Mon Sep 17 00:00:00 2001 From: seaerchin Date: Fri, 16 Aug 2024 01:16:19 +0800 Subject: [PATCH] sanity check --- .github/workflows/aws_deploy.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/aws_deploy.yml b/.github/workflows/aws_deploy.yml index 63d8c1f18a..77aa78c44c 100644 --- a/.github/workflows/aws_deploy.yml +++ b/.github/workflows/aws_deploy.yml @@ -161,10 +161,11 @@ jobs: sed -i 's//${{ inputs.shortEnv }}/g' ${{ inputs.ecs-task-definition-path }} sed -i 's//${{ inputs.environment == 'production' && 1024 || 512 }}/g' ${{ inputs.ecs-task-definition-path }} sed -i 's//${{ inputs.environment == 'production' && 2048 || 1024 }}/g' ${{ inputs.ecs-task-definition-path }} - sed -i 's//${{ secrets.RDS_READER_ENDPOINT }}/g' ${{ inputs.ecs-task-definition-path }} + # sed -i 's//${{ secrets.RDS_READER_ENDPOINT }}/g' ${{ inputs.ecs-task-definition-path }} sed -i 's//${{ github.sha }}/g' ${{ inputs.ecs-task-definition-path }} sed -i 's//${{ inputs.ecs-task-role }}/g' ${{ inputs.ecs-task-definition-path }} sed -i 's//${{ inputs.ecs-task-exec-role }}/g' ${{ inputs.ecs-task-definition-path }} + # add DD_API_KEY next time - name: Replace variables in appspec run: | @@ -186,6 +187,10 @@ jobs: container-name: ${{ inputs.ecs-container-name }} image: ${{ env.ECR_REGISTRY }}/${{ env.ECR_REPOSITORY }}:${{ env.IMAGE_TAG }} + - name: sanity check + - run: | + cat ${{ steps.task-def.outputs.task-definition }} + - name: Deploy Amazon ECS task definition uses: aws-actions/amazon-ecs-deploy-task-definition@v1 with: