Skip to content

Commit

Permalink
Merge pull request #1 from FullAccel/sejoon00-patch-2
Browse files Browse the repository at this point in the history
Create ci.yml
  • Loading branch information
sejoon00 authored May 26, 2024
2 parents b2d7863 + d8fa4b8 commit a45fb6f
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: deploy-spring-server
on:
push:
branches: master

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy spring MainServer(master)
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
password: ${{ secrets.SERVER_PASSWORD }}
script: |
cd ~/Desktop/ChaeDa_spring
git fetch origin master
git merge origin master
./gradlew build
docker rm desktop_back_1 --force
docker rmi desktop_back
cd ..
docker-compose up

0 comments on commit a45fb6f

Please sign in to comment.