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 62c39fd commit 85138ff
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
SERVER_PORT: ${{ secrets.SERVER_PORT }}
SERVER_USER: ${{ secrets.SERVER_USER }}
run: |
cd ${{ env.working-directory }}
chmod 755 ./deploy.sh
set -e
./deploy.sh
Expand Down
2 changes: 1 addition & 1 deletion deploy.sh → backend/moment/moment-server/deploy.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ssh -tt -p ${SERVER_PORT} ${SERVER_USER}@${SERVER_HOST} -i key.txt -o StrictHostKeyChecking=no << 'ENDSSH'
cd capstone-2024-22
cd capstone-2024-22/backend/moment/moment-server
git pull origin "deploy/v1"
docker-compose up --build -d
ENDSSH

0 comments on commit 85138ff

Please sign in to comment.