43 lines
826 B
YAML
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 |