From 371eeab3041e8b18d869c9164720adb1beba9e1f Mon Sep 17 00:00:00 2001 From: Minseong Park Date: Fri, 30 Aug 2024 00:29:18 +0900 Subject: [PATCH] =?UTF-8?q?build:=20actions=EC=97=90=20aws=20cli=20?= =?UTF-8?q?=EC=84=A4=EC=A0=95=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/dev-build-and-deploy.yaml | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.github/workflows/dev-build-and-deploy.yaml b/.github/workflows/dev-build-and-deploy.yaml index 997609cd..2f69c594 100644 --- a/.github/workflows/dev-build-and-deploy.yaml +++ b/.github/workflows/dev-build-and-deploy.yaml @@ -24,6 +24,18 @@ jobs: java-version: "17" distribution: "corretto" + - name: Configure AWS credentials + uses: aws-actions/configure-aws-credentials@v1 + with: + aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }} + aws-secret-access-key: ${{ secrets.AWS_S3_SECRET_KEY }} + aws-region: ap-northeast-2 + + - name: Get secrets from AWS Secrets Manager + run: | + SECRET_VALUE=$(aws secretsmanager get-secret-value --secret-id spot --query SecretString --output text) + echo "$SECRET_VALUE" | jq -r 'to_entries[] | "\(.key)=\(.value)"' >> $GITHUB_ENV + - name: Cache Gradle uses: actions/cache@v3 with: