Files
app_faturas/.drone.yml
ewerton.almeida 8a9d452160
Some checks failed
continuous-integration/drone/push Build is failing
Corrige execução do container de homologação no pipeline
2025-07-29 00:03:55 -03:00

49 lines
981 B
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: build image
image: docker
volumes:
- name: dockersock
path: /var/run/docker.sock
commands:
- cd /home/app_fatura_homolog
- docker build -t faturas_homolog .
- name: restart homolog container
image: appleboy/drone-ssh
settings:
host: 216.22.5.141
username: root
password: F6tC5tCh29XQRpzp
port: 22
script:
- mkdir -p /home/app_fatura_homolog
- docker rm -f FaturasHomolog || true
- cd /home/app_fatura_homolog
- docker compose -f docker-compose-homolog.yml up -d
volumes:
- name: dockersock
host:
path: /var/run/docker.sock