Skip to content

Commit

Permalink
build: actions에 aws cli 설정 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
pminsung12 committed Aug 29, 2024
1 parent aef637f commit 371eeab
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/dev-build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 371eeab

Please sign in to comment.