Corrige pipeline Drone para homologação (build + deploy)
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2025-07-29 00:00:04 -03:00
parent 86bbe1aa55
commit e8a8401483

View File

@@ -18,7 +18,15 @@ steps:
source: . source: .
target: /home/app_fatura_homolog target: /home/app_fatura_homolog
rm: false 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 - name: restart homolog container
image: appleboy/drone-ssh image: appleboy/drone-ssh
@@ -32,35 +40,7 @@ steps:
- cd /home/app_fatura_homolog - cd /home/app_fatura_homolog
- docker compose -f docker-compose-homolog.yml up -d - docker compose -f docker-compose-homolog.yml up -d
--- volumes:
kind: pipeline - name: dockersock
type: docker host:
name: production path: /var/run/docker.sock
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