--- 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