Files
app_faturas/.drone.yml
root 32df563026
Some checks failed
continuous-integration/drone/push Build is failing
ci: atualiza pipelines Drone CI (homologação e produção)
2025-07-28 13:44:17 -03:00

66 lines
1.2 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: true
- 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 down --remove-orphans
- docker compose up -d
---
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:
- cd /home/app_fatura
- docker compose down --remove-orphans
- docker compose up -d