From 7d27c6346bc0f279a8e14637774f586071bfd228 Mon Sep 17 00:00:00 2001 From: Saurabh Shrihar Date: Fri, 26 Apr 2024 10:32:21 +0400 Subject: [PATCH] Debug step 2 --- .github/workflows/re_use_workflow.yml | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/.github/workflows/re_use_workflow.yml b/.github/workflows/re_use_workflow.yml index 4376060..68b5319 100644 --- a/.github/workflows/re_use_workflow.yml +++ b/.github/workflows/re_use_workflow.yml @@ -22,7 +22,9 @@ jobs: id: set-env-var run: | echo "Debug: ${{ secrets.DEV_ACCOUNT_NUMBER }}" + echo "Env: ${{ inputs.environment }}" if [ "${{ inputs.environment }}" == "dev" ]; then + echo "Here Env: ${{ inputs.environment }}" echo "ACCOUNT_NUMBER=${{ secrets.DEV_ACCOUNT_NUMBER }}" >> $GITHUB_OUTPUT echo "APP_NAME=${{ inputs.core_app }}-dev" >> $GITHUB_OUTPUT elif [ "${{ inputs.environment }}" == "staging" ]; then @@ -41,14 +43,14 @@ jobs: run: | echo ${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }} - deploy: - uses: 0xPolygon/pipelines/.github/workflows/ecs_deploy_docker_taskdef.yaml@DEVOPS-2759-repo-public-update - needs: set-env-variable - with: - app_name: ${{ needs.set-env-variable.outputs.APP_NAME }} - taskdef_file_vars: .github/taskdef/${{ inputs.environment }}-taskdef.yaml - account_number: "${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }}" - aws_region: eu-west-1 - environment: ${{ inputs.environment }} - cluster_name: frontend-${{ inputs.environment }}-ecs-cluster - secrets: inherit \ No newline at end of file + # deploy: + # uses: 0xPolygon/pipelines/.github/workflows/ecs_deploy_docker_taskdef.yaml@DEVOPS-2759-repo-public-update + # needs: set-env-variable + # with: + # app_name: ${{ needs.set-env-variable.outputs.APP_NAME }} + # taskdef_file_vars: .github/taskdef/${{ inputs.environment }}-taskdef.yaml + # account_number: "${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }}" + # aws_region: eu-west-1 + # environment: ${{ inputs.environment }} + # cluster_name: frontend-${{ inputs.environment }}-ecs-cluster + # secrets: inherit \ No newline at end of file