This commit is contained in:
Leandro Facchinetti 2020-03-20 01:54:55 -04:00
parent 283e3a2f2c
commit 8d08525766
3 changed files with 9 additions and 7 deletions

View File

@ -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

View File

@ -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"
}

View File

@ -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"