-
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.
* feat: pre-production workflow 작성 * chore: 포트 환경변수로 변환
- Loading branch information
Showing
2 changed files
with
34 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: BE Pre Production Workflow | ||
|
||
on: | ||
push: | ||
branches: preproduction | ||
paths: "BE/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: connect to NCP | ||
use: appleboy/ssh-action@master | ||
with: | ||
host: ${{ secrets.NCP_HOST }} | ||
username: ${{ secrets.NCP_USERNAME }} | ||
password: ${{ secrets.NCP_PASSWORD }} | ||
|
||
script: | | ||
cd iOS06-FlipMate-preproduction/BE | ||
git pull origin preproduction | ||
npm install | ||
if ! pm2 list | grep -q "flipmate-preproduction"; then | ||
pm2 start npm --name "flipmate-preproduction" -- run start | ||
else | ||
pm2 restart flipmate-preproduction | ||
fi |
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