Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[fix][main] CI 되어야지만 CD #55

Merged
merged 2 commits into from
Aug 15, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/workflows/CD.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: deploy-bbogak-dev-server

on:
push:
branches: main
Expand All @@ -19,10 +20,11 @@ jobs:
- name: Build and Test
run: |
chmod +x gradlew
./gradlew build -x openapi3
./gradlew build -x openapi3 --no-daemon

deploy:
runs-on: ubuntu-latest
needs: ci
steps:
- name: Deploy spring MainServer(main)
uses: appleboy/ssh-action@master
Expand All @@ -37,8 +39,8 @@ jobs:
git fetch origin main
git merge origin/main

./gradlew clean build
./gradlew openapi3
./gradlew clean build --no-daemon
./gradlew openapi3 --no-daemon
docker rm bbo-gak-server_back_1 --force
docker rmi bbo-gak-server_back
docker-compose -f docker-compose-dev.yml up --build -d
Loading