mirror of https://github.com/docker/cli.git
Reword to remove ambiguity with go validate
Signed-off-by: Jean-Pierre Huynh <jean-pierre.huynh@ounet.fr>
This commit is contained in:
parent
b2fc35aefa
commit
2e7d24cae8
|
@ -7,7 +7,7 @@
|
||||||
DEV_DOCKER_IMAGE_NAME = docker-cli-dev
|
DEV_DOCKER_IMAGE_NAME = docker-cli-dev
|
||||||
LINTER_IMAGE_NAME = docker-cli-lint
|
LINTER_IMAGE_NAME = docker-cli-lint
|
||||||
CROSS_IMAGE_NAME = docker-cli-cross
|
CROSS_IMAGE_NAME = docker-cli-cross
|
||||||
VALIDATE_IMAGE_NAME = docker-cli-validate
|
VALIDATE_IMAGE_NAME = docker-cli-shell-validate
|
||||||
MOUNTS = -v "$(CURDIR)":/go/src/github.com/docker/cli
|
MOUNTS = -v "$(CURDIR)":/go/src/github.com/docker/cli
|
||||||
VERSION = $(shell cat VERSION)
|
VERSION = $(shell cat VERSION)
|
||||||
ENVVARS = -e VERSION=$(VERSION) -e GITCOMMIT
|
ENVVARS = -e VERSION=$(VERSION) -e GITCOMMIT
|
||||||
|
@ -26,9 +26,9 @@ build_linter_image:
|
||||||
build_cross_image:
|
build_cross_image:
|
||||||
docker build -t $(CROSS_IMAGE_NAME) -f ./dockerfiles/Dockerfile.cross .
|
docker build -t $(CROSS_IMAGE_NAME) -f ./dockerfiles/Dockerfile.cross .
|
||||||
|
|
||||||
.PHONY: build_validate_image
|
.PHONY: build_shell_validate_image
|
||||||
build_validate_image:
|
build_shell_validate_image:
|
||||||
docker build -t $(VALIDATE_IMAGE_NAME) -f ./dockerfiles/Dockerfile.validate .
|
docker build -t $(VALIDATE_IMAGE_NAME) -f ./dockerfiles/Dockerfile.shellcheck .
|
||||||
|
|
||||||
# build executable using a container
|
# build executable using a container
|
||||||
binary: build_docker_image
|
binary: build_docker_image
|
||||||
|
@ -86,5 +86,5 @@ yamldocs: build_docker_image
|
||||||
docker run -ti --rm $(MOUNTS) $(DEV_DOCKER_IMAGE_NAME) make yamldocs
|
docker run -ti --rm $(MOUNTS) $(DEV_DOCKER_IMAGE_NAME) make yamldocs
|
||||||
|
|
||||||
.PHONY: shellcheck
|
.PHONY: shellcheck
|
||||||
shellcheck: build_validate_image
|
shellcheck: build_shell_validate_image
|
||||||
docker run -ti --rm -v "$(CURDIR)":/tmp $(VALIDATE_IMAGE_NAME) make shellcheck
|
docker run -ti --rm -v "$(CURDIR)":/tmp $(VALIDATE_IMAGE_NAME) make shellcheck
|
||||||
|
|
Loading…
Reference in New Issue