Skip to content

Commit

Permalink
fix deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
wook-hyung committed Dec 9, 2023
1 parent 02ca356 commit 18c3e79
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: remote ssh command
name: Backend CI/CD
on:
push:
branches:
Expand All @@ -7,7 +7,17 @@ jobs:
build:
name: Deploy Node.js Application
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [16.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: executing remote ssh commands using password
uses: appleboy/[email protected]
with:
Expand All @@ -19,7 +29,5 @@ jobs:
whoami
cd /root/312TEN034-backend
git pull origin main
nvm use v16.20.2
npm install --force
npm install -g pm2
pm2 restart 0

0 comments on commit 18c3e79

Please sign in to comment.