From 5e3592003bf6ed4c1131dcb2d2924e142a5c67d8 Mon Sep 17 00:00:00 2001 From: kleph Date: Sat, 15 Feb 2020 00:42:17 +0100 Subject: [PATCH] Add docker build --- .drone.yml | 19 ++++++++++++++++--- README.md | 1 + 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/.drone.yml b/.drone.yml index 4aa324b..d640e80 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,5 +1,5 @@ kind: pipeline -name: lint +name: lint and build steps: - name: pylint @@ -10,7 +10,7 @@ steps: - pip install pylint - pylint *.py -- name: dockerlint +- name: docker lint image: hadolint/hadolint commands: - hadolint --ignore DL3013 Dockerfile # ignore pinning version in pip @@ -18,4 +18,17 @@ steps: - name: w3c validator image: validator/validator:latest commands: - - vnu static/*.html \ No newline at end of file + - 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 diff --git a/README.md b/README.md index 8132ddf..5403bfd 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,3 @@ # beer +Build status: [![Build Status](https://drone.kleph.eu/api/badges/kleph/beer/status.svg)](https://drone.kleph.eu/kleph/beer)