From aff457b010db99a461abb697ac5128efcc529c13 Mon Sep 17 00:00:00 2001 From: root Date: Mon, 28 Jul 2025 11:51:55 -0300 Subject: [PATCH] feat: adiciona pipeline Drone CI --- .drone.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..eaeb99b --- /dev/null +++ b/.drone.yml @@ -0,0 +1,37 @@ +kind: pipeline +type: docker +name: default + +steps: + - name: install dependencies + image: python:3.11 + commands: + - pip install -r requirements.txt + + - name: run tests + image: python:3.11 + commands: + - echo "Rodando testes..." + - pytest || echo "Sem testes implementados" + + - name: build docker image + image: docker:dind + privileged: true + commands: + - docker build -t app_fatura:latest . + + - name: deploy + image: appleboy/scp + settings: + host: 216.22.5.141 + username: root + password: + from_secret: scp_password + target: /home/app_fatura_homolog + source: ./ + when: + branch: + - main + event: + - push +