Skip to content

Commit 70f507d

Browse files
committed
chore: aws 배포 스크립트 수정
ec2 상에서 빌드 파일 저장될 위치 수정 ec2 에 yml 파일 생성
1 parent 67f3851 commit 70f507d

File tree

3 files changed

+55
-1
lines changed

3 files changed

+55
-1
lines changed

.github/workflows/ci.cd.prod.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,15 @@ jobs:
3636
java-version: 21
3737
distribution: 'temurin'
3838

39+
# application.yml 생성
40+
- name: Make application.yml
41+
run: |
42+
mkdir -p ./src/main/resources
43+
cd ./src/main/resources
44+
touch ./application.yml
45+
touch ./application-secrets.yml
46+
echo "${{ secrets.APPLICATION }}" > ./application.yml
47+
echo "${{ secrets.SECRET }}" > ./application-secret.yml
3948
# Gradle cache 설정
4049
- name: Cache Gradle packages
4150
uses: actions/cache@v4

appspec.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ os: linux
33

44
files:
55
- source: /
6-
destination: /home/ubuntu/build
6+
destination: /home/ubuntu/app
77
overwrite: yes
88

99
permissions:

src/main/resources/application.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
spring:
2+
profiles:
3+
include: secret
4+
5+
datasource:
6+
url: ${mysql.url}
7+
username: ${mysql.username}
8+
password: ${mysql.password}
9+
driver-class-name: com.mysql.cj.jdbc.Driver
10+
11+
jpa:
12+
hibernate:
13+
ddl-auto: create
14+
15+
security:
16+
oauth2:
17+
client:
18+
registration:
19+
naver:
20+
client-name: naver
21+
client-id: ${naver.client-id}
22+
client-secret: ${naver.client-secret}
23+
redirect-uri: ${naver.redirect-uri}
24+
authorization-grant-type: authorization_code
25+
scope:
26+
- name
27+
- email
28+
- nickname
29+
30+
google:
31+
client-name: google
32+
client-id: ${google.client-id}
33+
client-secret: ${google.client-secret}
34+
redirect-uri: ${google.redirect-uri}
35+
authorization-grant-type: authorization_code
36+
scope:
37+
- profile
38+
- email
39+
40+
provider:
41+
naver:
42+
authorization-uri: https://nid.naver.com/oauth2.0/authorize
43+
token-uri: https://nid.naver.com/oauth2.0/token
44+
user-info-uri: https://openapi.naver.com/v1/nid/me
45+
user-name-attribute: response

0 commit comments

Comments
 (0)