ki-backend/.drone.yml
Michael Weimann 3b6225f621
All checks were successful
continuous-integration/drone/push Build is passing
publish image only if a new tag appears
2021-07-02 16:16:32 +02:00

31 lines
570 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:
event:
- tag
image_pull_secrets:
- dockerconfig