Skip to content

Commit

Permalink
✨ CI/CD 설정
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Yong99 committed Apr 6, 2024
1 parent 2195d74 commit 407b1f8
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,16 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew


- name: Build with Gradle
uses: gradle/gradle-build-action@v2
with:
arguments: build -x test
build-root-directory: ./backend/moment/moment-server
gradle-version: 7.5

- name: Deploy to Server
uses: actions/checkout@v3
#
# - name: Build with Gradle
# uses: gradle/gradle-build-action@v2
# with:
# arguments: build -x test
# build-root-directory: ./backend/moment/moment-server
# gradle-version: 7.5
#
# - name: Deploy to Server
# uses: actions/checkout@v3

# - run: |
# docker-compose up --build
Expand Down Expand Up @@ -82,4 +82,3 @@ jobs:
chmod 755 ./deploy.sh
set -e
./deploy.sh
working-directory: ${{ env.working-directory }}
2 changes: 1 addition & 1 deletion backend/moment/moment-server/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ssh -tt -p ${SERVER_PORT} ${SERVER_USER}@${SERVER_HOST} -i key.txt -o StrictHostKeyChecking=no << 'ENDSSH'
ssh -p ${SERVER_PORT} ${SERVER_USER}@${SERVER_HOST} -i key.txt -o StrictHostKeyChecking=no << 'ENDSSH'
cd capstone-2024-22/backend/moment/moment-server
git pull origin "deploy/v1"
Expand Down

0 comments on commit 407b1f8

Please sign in to comment.