beer/.drone.yml
kleph 3082681ef2
All checks were successful
continuous-integration/drone/push Build is passing
Revert "[CI] Use detached step instead of service to run dockerd only after linters"
This reverts commit d9f5a34392.
2020-02-15 13:06:45 +01:00

47 lines
1 KiB
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: markdown lint
image: pipelinecomponents/markdownlint:latest
commands:
- mdl --style all --warnings .
- name: build image
image: docker:stable
environment:
DOCKER_HOST: tcp://docker:2375
USERNAME:
from_secret: dockerhub_username
PASSWORD:
from_secret: dockerhub_password
commands:
- docker build -t kleph/beer .
- docker login -u $USERNAME -p $PASSWORD
- docker image push kleph/beer
services:
- name: docker
image: docker:18.09-dind
environment:
DOCKER_TLS_CERTDIR: ""
command: [ "--storage-driver=vfs", "--tls=false" ]
privileged: true