Files
ldap-interface/.drone.yml
Alexandre CHAZAL 2b0c7e6696
Some checks failed
continuous-integration/drone/push Build is failing
fix(drone): added pip install to load from cache
2021-12-06 20:47:24 +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 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