Files
ldap-interface/.drone.yml
Alexandre CHAZAL 2c80006400
Some checks failed
continuous-integration/drone/push Build is failing
feat(drone): added linting and analysis in the CI
2021-12-06 19:55:50 +01:00

43 lines
826 B
YAML

---
kind: pipeline
type: docker
name: default
platform:
os: linux
arch: amd64
steps:
- name: Install packages
image: python
commands:
- pip install -r requirements.txt
- name: Lint - pylint
image: python
commands:
- pylint wsgi.py app/*.py
- name: Lint - flake8
image: python
commands:
- flake8 wsgi.py app/*.py
- name: Security analysis with bandit
image: python
commands:
- bandit -r app/
- 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