Skip to content

Commit

Permalink
fix(ci): change aws credential logic
Browse files Browse the repository at this point in the history
  • Loading branch information
astorverse committed Jul 17, 2024
1 parent 0d40f44 commit fdc3978
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/deploy-to-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
node-version: '21.7.2'

- name: Install dependencies
run: npm install
Expand All @@ -36,10 +36,12 @@ jobs:
run: npm run build

- name: Configure AWS credentials
run: |
aws sts get-caller-identity
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-access-key-id: ${{ secrets.AWS_PRODUCTION_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_PRODUCTION_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Log in to ECR
Expand Down

0 comments on commit fdc3978

Please sign in to comment.