-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[chore][#17]github action CI/CD workflow 설정
- Loading branch information
Showing
3 changed files
with
25 additions
and
50 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
name: deploy-spring-server | ||
name: deploy-bbogak-dev-server | ||
on: | ||
push: | ||
branches: master | ||
branches: main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Deploy spring MainServer(master) | ||
- 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 ~/Desktop/ChaeDa_spring | ||
git fetch origin master | ||
git merge origin/master | ||
cd ~/bbo-gak-server | ||
git fetch origin main | ||
git merge origin/main | ||
./gradlew build | ||
docker rm desktop_back_1 --force | ||
docker rmi desktop_back | ||
cd .. | ||
docker-compose up -d | ||
./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 |
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