Skip to content

Commit

Permalink
[MERGE/#30] S3로부터 구글 설정파일 생성
Browse files Browse the repository at this point in the history
[FEAT] #30 - S3로부터 구글 설정파일 생성
  • Loading branch information
seokbeom00 authored Jul 9, 2024
2 parents 18f44f1 + fd63ffe commit 4fc4107
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/DOCKER-CD.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,18 @@ jobs:
cat ./application.yml
working-directory: ${{ env.working-directory }}

- name: credentials.json 생성
id: create-json
uses: jsdaniell/create-json@1.1.2
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v2
with:
name: "credentials.json"
json: ${{ secrets.GOOGLE_CREDENTIALS }}
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_KEY }}
aws-region: ap-northeast-2

- name: credentials.json 생성
run: |
cd ./SEONYAK-SERVER/src/main/resources
aws s3 cp --region ap-northeast-2 s3://${{ secrets.S3_BUCKET_NAME }}/json/credentials.json .
shell: bash

- name: 빌드
run: |
Expand Down

0 comments on commit 4fc4107

Please sign in to comment.