Skip to content

Commit b3d1d26

Browse files
refact: deploy.yml foi ajustado
1 parent dc53c01 commit b3d1d26

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Deploy para VPS
33
on:
44
push:
55
branches:
6-
- main
6+
- deploy
77

88
jobs:
99
deploy:
@@ -24,7 +24,8 @@ jobs:
2424
run: |
2525
ssh -o ServerAliveInterval=60 -o ServerAliveCountMax=15 -i ~/.ssh/id_ed25519 root@191.252.177.252 << 'EOF'
2626
cd /github/e-commerce/
27-
git pull origin main
28-
docker-compose down
27+
git checkout deploy
28+
git pull
29+
docker-compose down -v
2930
docker-compose up -d
3031
EOF

0 commit comments

Comments
 (0)