cleanup #21

Merged
fedy95 merged 1 commits from cleanup into master 4 years ago
  1. 2
      .drone.yml
  2. 6
      Makefile

2
.drone.yml

@ -10,7 +10,7 @@ volumes:
path: /var/run/docker.sock
steps:
- name: validate yaml
- name: lint yaml
image: registry.fedy95.com/baseimage-yamllint:latest
commands:
- yamllint -c /yamllint/relaxed.yaml .

6
Makefile

@ -5,12 +5,12 @@ MAKEFLAGS += --silent
REPOSITORY=fedy95/baseimage:yamllint
TAG=latest
build_yamllint:
build-yamllint:
docker build -t ${REPOSITORY}-${TAG} image -f image/Dockerfile
lint: build_yamllint
lint: build-yamllint
@docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data ${REPOSITORY}-${TAG} .
lint_help: build_yamllint
lint_help: build-yamllint
docker run --rm -v $(pwd):/data ${REPOSITORY}-${TAG} --help
.DEFAULT_GOAL := lint