This commit is contained in:
parent
e39e0640a6
commit
d1223ff556
@ -17,19 +17,19 @@ jobs:
|
|||||||
run: npm run build
|
run: npm run build
|
||||||
|
|
||||||
- name: Deploy
|
- name: Deploy
|
||||||
uses: cross-the-world/ssh-scp-ssh-pipelines@master
|
uses: alinz/ssh-scp-action@master
|
||||||
with:
|
with:
|
||||||
host: 10.20.6.7
|
host: 10.20.6.7
|
||||||
port: 22
|
port: 22
|
||||||
user: root
|
user: root
|
||||||
key: ${{ secrets.SSH_KEY }}
|
key: ${{ secrets.SSH_KEY }}
|
||||||
first_ssh: |
|
ssh_before: |
|
||||||
rm -r /root/website
|
rm -r /root/website
|
||||||
mkdir /root/website
|
mkdir /root/website
|
||||||
scp: |
|
scp: |
|
||||||
'./build/*' => /root/website
|
'build/*' root@10.20.6.7:/root/website
|
||||||
'./package*' => /root/website
|
'package*' root@10.20.6.7:/root/website
|
||||||
last_ssh: |
|
ssh_after: |
|
||||||
cd /root/website
|
cd /root/website
|
||||||
npm i --omit=dev
|
npm i --omit=dev
|
||||||
nohup node index.js > /var/log/website 2>&1
|
nohup node index.js > /var/log/website 2>&1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user