Merge pull request #52 from depromeet/feature/#51 #19
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 add . | |
git commit -m "temp commit" | |
git fetch origin main | |
git merge origin/main | |
./gradlew clean build | |
./gradlew openapi3 | |
docker rm bbo-gak-server_back_1 --force | |
docker rmi bbo-gak-server_back | |
docker-compose -f docker-compose-dev.yml up --build -d |