Skip to content

Commit

Permalink
Trigger 11
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Apr 26, 2024
1 parent e0e72fb commit 04993ae
Showing 1 changed file with 12 additions and 13 deletions.
25 changes: 12 additions & 13 deletions .github/workflows/re_use_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,10 @@ jobs:
- name: Set Environment Variable
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 "ACCOUNT_NUMBER=secrets.DEV_ACCOUNT_NUMBER" >> $GITHUB_OUTPUT
echo "APP_NAME=${{ inputs.core_app }}-dev" >> $GITHUB_OUTPUT
elif [ "${{ inputs.environment }}" == "staging" ]; then
echo "ACCOUNT_NUMBER=${{ secrets.STAGING_ACCOUNT_NUMBER }}" >> $GITHUB_OUTPUT
Expand All @@ -48,14 +47,14 @@ jobs:
echo "ACCOUNT_NUMBER: ${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }}"
echo "APP_NAME: ${{ needs.set-env-variable.outputs.APP_NAME }}"
# 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 04993ae

Please sign in to comment.