Skip to content

Commit

Permalink
Update env variables setup for fixing warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sshrihar committed Mar 18, 2024
1 parent 33866b1 commit 79b66b2
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,17 +23,17 @@ jobs:
id: set-env-var
run: |
if [ "${{ github.ref }}" == "refs/heads/dev" ]; then
echo "::set-output name=ENVIRONMENT::dev"
echo "::set-output name=ACCOUNT_NUMBER::058264511034"
echo "ENVIRONMENT=dev" >> $GITHUB_OUTPUT
echo "ACCOUNT_NUMBER=058264511034" >> $GITHUB_OUTPUT
elif [ "${{ github.ref }}" == "refs/heads/DEVOPS-2599-static-staging-app-infra" ]; then
echo "::set-output name=ENVIRONMENT::dev"
echo "::set-output name=ACCOUNT_NUMBER::058264511034"
echo "ENVIRONMENT=dev" >> $GITHUB_OUTPUT
echo "ACCOUNT_NUMBER=058264511034" >> $GITHUB_OUTPUT
elif [ "${{ github.ref }}" == "refs/heads/staging" ]; then
echo "::set-output name=ENVIRONMENT::staging"
echo "::set-output name=ACCOUNT_NUMBER::070528468658"
echo "ENVIRONMENT=staging" >> $GITHUB_OUTPUT
echo "ACCOUNT_NUMBER=070528468658" >> $GITHUB_OUTPUT
elif [ "${{ github.ref }}" == "refs/heads/master" ]; then
echo "::set-output name=ENVIRONMENT::prod"
echo "::set-output name=ACCOUNT_NUMBER::042947190491"
echo "ENVIRONMENT=prod" >> $GITHUB_OUTPUT
echo "ACCOUNT_NUMBER=042947190491" >> $GITHUB_OUTPUT
fi
deploy_workflow:
name: Deploy static-${{ needs.set-env-variable.outputs.ENVIRONMENT }}
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
uses: aws-actions/configure-aws-credentials@v1
with:
aws-region: eu-west-1
role-to-assume: "arn:aws:iam::$ACCOUNT_NUMBER:role/static-$DEPLOY_ENV-GithubActionsRole"
role-to-assume: arn:aws:iam::$ACCOUNT_NUMBER:role/static-$DEPLOY_ENV-GithubActionsRole
role-session-name: GithubActionsSession

- name: Login to Amazon ECR
Expand Down

0 comments on commit 79b66b2

Please sign in to comment.