setup-gcloud/docker.mk
GitHub 8ec8bfad38
Initial commit
Co-authored-by: Thomas Osowski <osowskit@github.com>
Co-authored-by: Tom Osowski <osowskit@github.com>
Co-authored-by: Nick Van Wiggeren <nickvanw@github.com>
Co-authored-by: Brandon Keepers <bkeepers@github.com>
Co-authored-by: Nick Van Wiggeren <nickvanw@users.noreply.github.com>
Co-authored-by: Steve Winton <stevewinton@gmail.com>
Co-authored-by: Steve Winton <swinton@users.noreply.github.com>
Co-authored-by: Greg Orzell <gorzell@users.noreply.github.com>
Co-authored-by: Greg Orzell <gorzell@github.com>
2018-10-16 07:49:23 -07:00

17 lines
656 B
Makefile

IMAGE_NAME=$(shell basename $(CURDIR))
.PHONY: docker-lint
docker-lint: ## Run Dockerfile Lint on all dockerfiles.
dockerfile_lint -r $(ROOT_DIR)/.dockerfile_lint/github_actions.yaml $(wildcard Dockerfile* */Dockerfile*)
.PHONY: docker-build
docker-build: ## Build the top level Dockerfile using the directory or $IMAGE_NAME as the name.
docker build -t $(IMAGE_NAME) .
.PHONY: docker-tag
docker-tag: ## Tag the docker image using the tag script.
tag $(IMAGE_NAME) '$(DOCKER_REPO)/$(IMAGE_NAME)' --no-latest
.PHONY: docker-publish
docker-publish: docker-tag ## Publish the image and tags to a repository.
docker push '$(DOCKER_REPO)/$(IMAGE_NAME)'