Add docker build
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
kleph 2020-02-15 00:42:17 +01:00
parent 94b37ca609
commit 5e3592003b
2 changed files with 17 additions and 3 deletions

View file

@ -1,5 +1,5 @@
kind: pipeline kind: pipeline
name: lint name: lint and build
steps: steps:
- name: pylint - name: pylint
@ -10,7 +10,7 @@ steps:
- pip install pylint - pip install pylint
- pylint *.py - pylint *.py
- name: dockerlint - name: docker lint
image: hadolint/hadolint image: hadolint/hadolint
commands: commands:
- hadolint --ignore DL3013 Dockerfile # ignore pinning version in pip - hadolint --ignore DL3013 Dockerfile # ignore pinning version in pip
@ -19,3 +19,16 @@ steps:
image: validator/validator:latest image: validator/validator:latest
commands: commands:
- vnu static/*.html - 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

View file

@ -1,2 +1,3 @@
# beer # beer
Build status: [![Build Status](https://drone.kleph.eu/api/badges/kleph/beer/status.svg)](https://drone.kleph.eu/kleph/beer)