Skip to content

Commit

Permalink
Trigger workflow 15
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Apr 26, 2024
1 parent 970d2bf commit 6f8c173
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/re_use_workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
id: set-env-var
run: |
if [ "${{ inputs.environment }}" == "dev" ]; then
echo "ACCOUNT_NUMBER=secrets.DEV_ACCOUNT_NUMBER" >> $GITHUB_OUTPUT
echo "ACCOUNT_NUMBER=$(echo '${{ secrets.DEV_ACCOUNT_NUMBER }}' | jq -R .)" >> $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
echo "ACCOUNT_NUMBER=$(echo '${{ secrets.STAGING_ACCOUNT_NUMBER }}' | jq -R .)" >> $GITHUB_OUTPUT
echo "APP_NAME=${{ inputs.core_app }}-staging" >> $GITHUB_OUTPUT
elif [ "${{ inputs.environment }}" == "prod" ]; then
echo "ACCOUNT_NUMBER=secrets.PROD_ACCOUNT_NUMBER" >> $GITHUB_OUTPUT
echo "ACCOUNT_NUMBER=$(echo '${{ secrets.PROD_ACCOUNT_NUMBER }}' | jq -R .)" >> $GITHUB_OUTPUT
echo "APP_NAME=${{ inputs.core_app }}" >> $GITHUB_OUTPUT
fi
deploy:
Expand All @@ -40,5 +40,4 @@ jobs:
aws_region: eu-west-1
environment: ${{ inputs.environment }}
cluster_name: frontend-${{ inputs.environment }}-ecs-cluster
secrets:
account_number: "${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }}"
account_number: "${{ needs.set-env-variable.outputs.ACCOUNT_NUMBER }}"

0 comments on commit 6f8c173

Please sign in to comment.