Files
ldap-interface/.drone.yml
Alexandre CHAZAL b1f8c3f277
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing
fix(drone): now ignore config.py in pylint step
2021-12-06 20:52:05 +01:00

63 lines
1.3 KiB
YAML

---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: Install packages
image: python
commands:
- pip install -r requirements.txt
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Lint - pylint
image: python
commands:
- pip install -r requirements.txt
- pylint --ignore-paths app/config.py wsgi.py app/*.py
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Lint - flake8
image: python
commands:
- pip install -r requirements.txt
- flake8 wsgi.py app/*.py
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Security analysis with bandit
image: python
commands:
- pip install -r requirements.txt
- bandit -r app/
volumes:
- name: pip_cache
path: /root/.cache/pip
- name: Publish the image
image: plugins/docker
settings:
repo: registry.alxczl.fr/ldap-interface
username:
from_secret: docker_username
password:
from_secret: docker_password
registry: registry.alxczl.fr
auto_tag: true
when:
branch:
- master
volumes:
- name: pip_cache
host:
path: /tmp/drone/cache/pip_cache