diff --git a/.drone.yml b/.drone.yml index 057f4a6..4baa094 100644 --- a/.drone.yml +++ b/.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 . diff --git a/Makefile b/Makefile index 8e49b94..f045bdf 100644 --- a/Makefile +++ b/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