Files
app_faturas/.drone.yml

68 lines
1.3 KiB
YAML
Raw Normal View History

---
2025-07-28 11:51:55 -03:00
kind: pipeline
type: docker
2025-07-28 12:44:40 -03:00
name: homolog
2025-07-28 11:51:55 -03:00
trigger:
branch:
- main
2025-07-28 11:51:55 -03:00
steps:
2025-07-28 12:44:40 -03:00
- name: deploy to homolog
image: appleboy/drone-scp
2025-07-28 11:51:55 -03:00
settings:
host: 216.22.5.141
username: root
2025-07-28 12:44:40 -03:00
password: F6tC5tCh29XQRpzp
port: 22
source: .
2025-07-28 11:51:55 -03:00
target: /home/app_fatura_homolog
rm: false
args:
- "--exclude=docker-compose.yml"
2025-07-28 11:51:55 -03:00
- name: restart homolog container
image: appleboy/drone-ssh
2025-07-28 12:44:40 -03:00
settings:
host: 216.22.5.141
username: root
password: F6tC5tCh29XQRpzp
port: 22
script:
- docker rm -f FaturasHomolog || true
2025-07-28 12:44:40 -03:00
- cd /home/app_fatura_homolog
- 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:
- docker rm -f Faturas || true
- cd /home/app_fatura
2025-07-28 12:44:40 -03:00
- docker compose up -d