Compare commits
2 Commits
7ff259ef08
...
b9c017e83b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b9c017e83b | ||
|
|
aff457b010 |
37
.drone.yml
Normal file
37
.drone.yml
Normal 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
|
||||
|
||||
Reference in New Issue
Block a user