Files
app_faturas/.drone.yml
ewerton.almeida b51eeac014
All checks were successful
continuous-integration/drone/push Build is passing
Corrige indentação e reinício com rebuild no ambiente de homologação
2025-07-29 17:22:12 -03:00

65 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: homolog
trigger:
branch:
- main
steps:
- name: deploy to homolog
image: appleboy/drone-scp
settings:
host: 216.22.5.141
username: root
password: F6tC5tCh29XQRpzp
port: 22
source: .
target: /home/app_fatura_homolog
rm: false
- name: restart homolog container
image: appleboy/drone-ssh
settings:
host: 216.22.5.141
username: root
password: F6tC5tCh29XQRpzp
port: 22
script:
- cd /home/app_fatura_homolog
- docker compose -f docker-compose-homolog.yml down
- docker compose -f docker-compose-homolog.yml up -d --build
---
kind: pipeline
type: docker
name: production
trigger:
branch:
- production
steps:
- name: deploy to production
image: appleboy/drone-scp
settings:
host: 216.22.5.141
username: root
password: F6tC5tCh29XQRpzp
port: 22
source: .
target: /home/app_fatura
rm: true
- name: restart production container
image: appleboy/drone-ssh
settings:
host: 216.22.5.141
username: root
password: F6tC5tCh29XQRpzp
port: 22
script:
- docker rm -f Faturas || true
- cd /home/app_fatura
- docker compose up -d