We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents f794b2c + 38dc128 commit 25303e0Copy full SHA for 25303e0
1 file changed
.github/workflows/deploy_test_server.yml
@@ -30,15 +30,10 @@ jobs:
30
- name: Build Spring Boot Application
31
run: ./gradlew bootJar
32
33
- - name: Clean up old container and image
+ - name: Stop existing application
34
run: |
35
- docker rm won-q-server -f || true
36
- docker rmi won-q-server || true
+ pkill -f 'java -jar' || true
37
38
- - name: Build Docker Image
+ - name: Run Spring Boot Application
39
40
- docker build -t won-q-server .
41
-
42
- - name: Run Container
43
- run: |
44
- docker run -d --name won-q-server -p 80:8080 won-q-server
+ nohup java -jar ./build/libs/*.jar > app.log 2>&1 &
0 commit comments