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)