Files
app_faturas/.drone.yml
2025-07-28 11:51:55 -03:00

38 lines
707 B
YAML

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