Skip to content

Merge pull request #1 from FullAccel/sejoon00-patch-2 #1

Merge pull request #1 from FullAccel/sejoon00-patch-2

Merge pull request #1 from FullAccel/sejoon00-patch-2 #1

Workflow file for this run

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