From 0159960068c764043c223e2f1c000741fa9adca5 Mon Sep 17 00:00:00 2001 From: Brian <120551412+DnKhanhh@users.noreply.github.com> Date: Wed, 24 Apr 2024 17:06:07 +0700 Subject: [PATCH] update deploy.yml --- .github/workflows/deploy.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 28675b9..5f7b4ee 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,6 +28,13 @@ id: login-ecr uses: aws-actions/amazon-ecr-login@v2 + - name: Configure AWS credentials + 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-region: ap-southeast-1 + - name: Load secrets and save to app.env run: aws secretsmanager get-secret-value --secret-id bank --query SecretString --output text | jq -r 'to_entries|map("\(.key)=\(.value)")|.[]' > app.env