ci: atualiza pipelines Drone CI (homologação e produção)
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
42
.drone.yml
42
.drone.yml
@@ -2,6 +2,10 @@ kind: pipeline
|
|||||||
type: docker
|
type: docker
|
||||||
name: homolog
|
name: homolog
|
||||||
|
|
||||||
|
trigger:
|
||||||
|
branch:
|
||||||
|
- main
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: deploy to homolog
|
- name: deploy to homolog
|
||||||
image: appleboy/drone-scp
|
image: appleboy/drone-scp
|
||||||
@@ -14,7 +18,7 @@ steps:
|
|||||||
target: /home/app_fatura_homolog
|
target: /home/app_fatura_homolog
|
||||||
rm: true
|
rm: true
|
||||||
|
|
||||||
- name: restart container
|
- name: restart homolog container
|
||||||
image: appleboy/drone-ssh
|
image: appleboy/drone-ssh
|
||||||
settings:
|
settings:
|
||||||
host: 216.22.5.141
|
host: 216.22.5.141
|
||||||
@@ -23,5 +27,39 @@ steps:
|
|||||||
port: 22
|
port: 22
|
||||||
script:
|
script:
|
||||||
- cd /home/app_fatura_homolog
|
- cd /home/app_fatura_homolog
|
||||||
- docker compose down
|
- 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
|
- docker compose up -d
|
||||||
|
|||||||
Reference in New Issue
Block a user