This commit is contained in:
parent
283e3a2f2c
commit
8d08525766
|
@ -11,10 +11,10 @@ jobs:
|
|||
- uses: webfactory/ssh-agent@v0.2.0
|
||||
with:
|
||||
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
|
||||
if: github.ref == 'ref/heads/master'
|
||||
if: github.ref == 'refs/heads/master'
|
||||
- run: |
|
||||
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: |
|
||||
# mkdir ~/.ssh
|
||||
# echo "${{ secrets.SECRET_PRIVATE_DEPLOY_KEY }}" > ~/.ssh/id_rsa
|
||||
|
|
|
@ -58,6 +58,13 @@
|
|||
"ForwardAgent=yes",
|
||||
"StrictHostKeyChecking=no"
|
||||
],
|
||||
"TODO": [
|
||||
"certbot",
|
||||
"env NODE_ENVIRONMENT=production npm install",
|
||||
"rsync",
|
||||
"pm2 startup OR pm2 save",
|
||||
"pm2 start env.js"
|
||||
],
|
||||
"env": {
|
||||
"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