Compare commits
1 Commits
5e008042bd
...
6b9b2129a4
Author | SHA1 | Date | |
---|---|---|---|
6b9b2129a4 |
24
.drone.yml
24
.drone.yml
@ -4,29 +4,12 @@ type: docker
|
|||||||
name: default
|
name: default
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: qa_main
|
- name: qa
|
||||||
image: python:3.8-alpine
|
image: registry.wtf-eg.net/ki-backend-builder:1.0.0
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache gcc g++ musl-dev python3-dev
|
|
||||||
- pip3 install pipenv
|
|
||||||
- pipenv install --dev
|
- pipenv install --dev
|
||||||
- pipenv run flake8
|
- pipenv run flake8
|
||||||
- pipenv run python -m unittest discover ki
|
- pipenv run python -m unittest discover ki
|
||||||
when:
|
|
||||||
branch:
|
|
||||||
- main
|
|
||||||
|
|
||||||
- name: qa_pr
|
|
||||||
image: python:3.8-alpine
|
|
||||||
commands:
|
|
||||||
- apk add --no-cache gcc g++ musl-dev python3-dev
|
|
||||||
- pip3 install pipenv
|
|
||||||
- pipenv install --dev
|
|
||||||
- pipenv run flake8
|
|
||||||
- pipenv run python -m unittest discover ki
|
|
||||||
when:
|
|
||||||
event:
|
|
||||||
- pull_request
|
|
||||||
|
|
||||||
- name: docker-publish
|
- name: docker-publish
|
||||||
image: plugins/docker
|
image: plugins/docker
|
||||||
@ -42,3 +25,6 @@ steps:
|
|||||||
when:
|
when:
|
||||||
branch:
|
branch:
|
||||||
- main
|
- main
|
||||||
|
|
||||||
|
image_pull_secrets:
|
||||||
|
- dockerconfigjson
|
||||||
|
Loading…
Reference in New Issue
Block a user