Skip to content

Merge pull request #30 from depromeet/feature/#27 #6

Merge pull request #30 from depromeet/feature/#27

Merge pull request #30 from depromeet/feature/#27 #6

Workflow file for this run

name: deploy-bbogak-dev-server
on:
push:
branches: main
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Deploy spring MainServer(main)
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SERVER_KEY }}
script: |
cd ~/bbo-gak-server
git fetch origin main
git merge origin/main
./gradlew openapi3
./gradlew clean build
docker rm bbo-gak-server_back_1 --force
docker rmi bbo-gak-server_back
docker-compose -f docker-compose-dev.yml up --build -d