Compare commits

...

2 Commits

Author SHA1 Message Date
root
b9c017e83b Merge branch 'main' of https://git.wlissesmenezes.adv.br/ewerton.almeida/app_faturas
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2025-07-28 11:54:02 -03:00
root
aff457b010 feat: adiciona pipeline Drone CI 2025-07-28 11:51:55 -03:00

37
.drone.yml Normal file
View File

@@ -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