From e8a84014830ea6fd0604869688ece0ec6d8bc657 Mon Sep 17 00:00:00 2001 From: "ewerton.almeida" Date: Tue, 29 Jul 2025 00:00:04 -0300 Subject: [PATCH] =?UTF-8?q?Corrige=20pipeline=20Drone=20para=20homologa?= =?UTF-8?q?=C3=A7=C3=A3o=20(build=20+=20deploy)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .drone.yml | 46 +++++++++++++--------------------------------- 1 file changed, 13 insertions(+), 33 deletions(-) diff --git a/.drone.yml b/.drone.yml index 9f4e603..66f50a6 100644 --- a/.drone.yml +++ b/.drone.yml @@ -18,7 +18,15 @@ steps: 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 @@ -32,35 +40,7 @@ steps: - cd /home/app_fatura_homolog - docker compose -f docker-compose-homolog.yml 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 - - docker compose up -d +volumes: + - name: dockersock + host: + path: /var/run/docker.sock