Skip to content

Commit

Permalink
Update deploy.yml
Browse files Browse the repository at this point in the history
- application.yml secret 에서 정보 가져와서 파일 동적 추가하는 로직 추가

Signed-off-by: 이태윤 <tyleeg0901@gmail.com>
  • Loading branch information
mataeLee authored Oct 5, 2024
1 parent 8c719eb commit 85b9db3
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
AWS_EC2_SSH_KEY: ${{ secrets.AWS_EC2_SSH_KEY }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
APPLICATION_YML: ${{ secrets.APPICATION }}

steps:
# Java 21 설치
Expand All @@ -38,6 +39,14 @@ jobs:
with:
ref: develop

# secrets 내용을 읽어 yml 파일을 특정 위치에 생성
- name: make application.yml
run: |
mkdir -p ./src/main/resources
cd ./src/main/resources
touch ./application.yml
echo "${{ secrets.APPLICATION }}" > ./application.yml
# Build Application
- name: Build the application
run: ./gradlew build
Expand Down

0 comments on commit 85b9db3

Please sign in to comment.