Skip to content

Commit

Permalink
Debug step 2
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Apr 26, 2024
1 parent fe9aa3f commit 7d27c63
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions .github/workflows/re_use_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
# 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

0 comments on commit 7d27c63

Please sign in to comment.