beer/.drone.yml
kleph f2cae29aca
Some checks failed
continuous-integration/drone/push Build is failing
Use privilege mode
2020-02-15 11:59:32 +01:00

34 lines
689 B
YAML

kind: pipeline
name: lint and build
steps:
- name: pylint
image: python:slim
commands:
- "echo \"==> Pylint ...\""
- pip install -r requirements.txt
- pip install pylint
- pylint *.py
- name: docker lint
image: hadolint/hadolint
commands:
- hadolint --ignore DL3013 Dockerfile # ignore pinning version in pip
- name: w3c validator
image: validator/validator:latest
commands:
- vnu static/*.html
- name: build image
image: docker:stable
environment:
DOCKER_HOST: tcp://docker:2375
commands:
- docker build -t kleph/beer .
services:
- name: docker
image: docker:dind
command: [ "--storage-driver=vfs", "--tls=false" ]
privileged: true