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