From adf9fab301566f62dc1352a2495a0c591677f9da Mon Sep 17 00:00:00 2001 From: Sheetal-ayanworks <125483294+Sheetal-ayanworks@users.noreply.github.com> Date: Fri, 5 Apr 2024 17:50:59 +0530 Subject: [PATCH] Update dev-user.yml Signed-off-by: Sheetal-ayanworks <125483294+Sheetal-ayanworks@users.noreply.github.com> --- .github/workflows/dev-user.yml | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/.github/workflows/dev-user.yml b/.github/workflows/dev-user.yml index f7c2416d3..725c54bfb 100644 --- a/.github/workflows/dev-user.yml +++ b/.github/workflows/dev-user.yml @@ -73,13 +73,11 @@ jobs: NAME=$(sed -n 's/.*"name": "\(.*\)",/\1/p' taskdef/user-service.json) SERVICE_NAME="${NAME}-service" - # Replace placeholders in the JSON file - sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/user-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json + # Replace placeholders in the JSON file + sed -e "s;%BUILD_NUMBER%;${{ github.run_number }};g" -e "s;%REPOSITORY_URI%;${REPOSITORY_URI};g" taskdef/user-service.json > ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json - # Debug: Print the content of the modified JSON file - cat ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json + # Debug: Print the content of the modified JSON file + cat ${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json - # Register the task definition using the modified JSON file - aws ecs register-task-definition --family ${FAMILY} --cli-input-json file://${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json --region ${{ env.AWS_REGION }} - - + # Register the task definition using the modified JSON file + aws ecs register-task-definition --family ${FAMILY} --cli-input-json file://${GITHUB_WORKSPACE}/${NAME}-v_${{ github.run_number }}.json --region ${{ env.AWS_REGION }}