ki-backend/.drone.yml
Michael Weimann 6b9b2129a4
Some checks reported errors
continuous-integration/drone/push Build encountered an error
optimise drone build
2021-06-27 16:46:37 +02:00

31 lines
578 B
YAML

---
kind: pipeline
type: docker
name: default
steps:
- name: qa
image: registry.wtf-eg.net/ki-backend-builder:1.0.0
commands:
- pipenv install --dev
- pipenv run flake8
- pipenv run python -m unittest discover ki
- name: docker-publish
image: plugins/docker
settings:
registry: registry.wtf-eg.net
repo: registry.wtf-eg.net/ki-backend
target: ki-backend
auto_tag: true
username:
from_secret: "docker_username"
password:
from_secret: "docker_password"
when:
branch:
- main
image_pull_secrets:
- dockerconfigjson