commit aff457b010db99a461abb697ac5128efcc529c13 Author: root Date: Mon Jul 28 11:51:55 2025 -0300 feat: adiciona pipeline Drone CI 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 +