From 02774f8ea9108dff4f62fcbf179131b167b76831 Mon Sep 17 00:00:00 2001 From: fedy95 Date: Tue, 30 Mar 2021 18:22:06 +0300 Subject: [PATCH] cleanup --- Makefile | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index f045bdf..4b28ddb 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ MAKEFLAGS += --silent - .PHONY: * -REPOSITORY=fedy95/baseimage:yamllint -TAG=latest +LOCAL_REPOSITORY=fedy95/baseimage:yamllint +YAMLLINT_TAG=latest -build-yamllint: - docker build -t ${REPOSITORY}-${TAG} image -f image/Dockerfile +lint: lint-yaml -lint: build-yamllint - @docker run --rm $$(tty -s && echo "-it" || echo) -v $(PWD):/data ${REPOSITORY}-${TAG} . +build-yamllint: + docker build -t ${LOCAL_REPOSITORY}-${YAMLLINT_TAG} image -f image/Dockerfile +lint-yaml: build-yamllint + docker run --rm -it -v $(PWD):/data ${LOCAL_REPOSITORY}-${YAMLLINT_TAG} . lint_help: build-yamllint - docker run --rm -v $(pwd):/data ${REPOSITORY}-${TAG} --help + docker run --rm -it -v $(PWD):/data ${LOCAL_REPOSITORY}-${YAMLLINT_TAG} --help .DEFAULT_GOAL := lint -- 2.30.2