Skip to content

Commit ebfeaa7

Browse files
author
wolfsecur1ty
committed
CI: Adiciona workflow de deploy para a VPS
1 parent 34eac18 commit ebfeaa7

1 file changed

Lines changed: 20 additions & 0 deletions

File tree

.github/workflows/deploy-vps.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Deploy to VPS
2+
3+
on:
4+
push:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
deploy:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Deploy to VPS via SSH
12+
uses: appleboy/ssh-action@v1.0.3
13+
with:
14+
host: ${{ secrets.VPS_HOST }}
15+
username: ${{ secrets.VPS_USERNAME }}
16+
key: ${{ secrets.VPS_SSH_PRIVATE_KEY }}
17+
script: |
18+
cd /var/www/sniff.wolfsecurity.com.br/public_html/invmap
19+
git pull origin main
20+
echo "Deployment to VPS successful!"

0 commit comments

Comments
 (0)