This commit is contained in:
parent
283e3a2f2c
commit
8d08525766
|
@ -11,10 +11,10 @@ jobs:
|
||||||
- uses: webfactory/ssh-agent@v0.2.0
|
- uses: webfactory/ssh-agent@v0.2.0
|
||||||
with:
|
with:
|
||||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||||
if: github.ref == 'ref/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
- run: |
|
- run: |
|
||||||
ssh -o StrictHostKeyChecking=no -A root@204.48.21.111 'ssh git@github.com'
|
ssh -o StrictHostKeyChecking=no -A root@204.48.21.111 'ssh git@github.com'
|
||||||
if: github.ref == 'ref/heads/master'
|
if: github.ref == 'refs/heads/master'
|
||||||
# - run: |
|
# - run: |
|
||||||
# mkdir ~/.ssh
|
# mkdir ~/.ssh
|
||||||
# echo "${{ secrets.SECRET_PRIVATE_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
# echo "${{ secrets.SECRET_PRIVATE_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
||||||
|
|
|
@ -58,6 +58,13 @@
|
||||||
"ForwardAgent=yes",
|
"ForwardAgent=yes",
|
||||||
"StrictHostKeyChecking=no"
|
"StrictHostKeyChecking=no"
|
||||||
],
|
],
|
||||||
|
"TODO": [
|
||||||
|
"certbot",
|
||||||
|
"env NODE_ENVIRONMENT=production npm install",
|
||||||
|
"rsync",
|
||||||
|
"pm2 startup OR pm2 save",
|
||||||
|
"pm2 start env.js"
|
||||||
|
],
|
||||||
"env": {
|
"env": {
|
||||||
"NODE_ENV": "production"
|
"NODE_ENV": "production"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
// execInFolder(`git pull origin master`);
|
|
||||||
// execInFolder(`npm ci`);
|
|
||||||
// TODO: rsync
|
|
||||||
// TODO: $ pm2 startup OR $ pm2 save
|
|
||||||
// TODO: $ pm2 start env.js --watch --ignore-watch="node_modules"
|
|
Loading…
Reference in New Issue