Skip to content

Commit a93b3d7

Browse files
committed
fix: gradle.yml 파일 수정
- 자동 배포를 위한 yml 파일 수정
1 parent aeb5a2f commit a93b3d7

File tree

1 file changed

+1
-22
lines changed

1 file changed

+1
-22
lines changed

.github/workflows/gradle.yml

Lines changed: 1 addition & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -11,33 +11,12 @@ jobs:
1111
build:
1212
runs-on: ubuntu-latest
1313
steps:
14-
15-
- name: checkout
16-
uses: actions/checkout@v3
17-
1814
- name: Set up JDK 17
1915
uses: actions/setup-java@v3
2016
with:
2117
java-version: '17'
2218
distribution: 'temurin'
2319

24-
## create application-database.yaml
25-
- name: make application-database.yaml
26-
run: |
27-
## create application-database.yaml
28-
cd ./src/main/resources
29-
30-
# application.yaml 파일 생성
31-
touch ./application.properties
32-
33-
# GitHub-Actions 에서 설정한 전체 값을 application.properties 파일에 쓰기
34-
echo "${{ secrets.APPLICATION }}" >> ./application.properties
35-
shell: bash
36-
37-
## gradle build
38-
- name: Build with Gradle
39-
run: ./gradlew bootJar
40-
4120
## 원격 서버에서 docker-compose 실행
4221
- name: Build and Run Docker on Server
4322
uses: appleboy/ssh-action@master
@@ -52,7 +31,7 @@ jobs:
5231
git pull origin develop
5332
5433
# application.properties 새로 생성
55-
echo "${{ secrets.APPLICATION }}" | sudo tee /home/ubuntu/server/src/main/resources/application.properties > /dev/null
34+
echo "${{ secrets.APPLICATION }}" | sudo tee ./src/main/resources/application.properties > /dev/null
5635
5736
# 🔹 JAR 빌드 (서버에서 실행)
5837
./gradlew bootJar

0 commit comments

Comments
 (0)