File tree Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Expand file tree Collapse file tree 1 file changed +1
-22
lines changed Original file line number Diff line number Diff 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
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
You can’t perform that action at this time.
0 commit comments