forked from astlock/gcloud
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker.mk
More file actions
17 lines (13 loc) · 656 Bytes
/
Copy pathdocker.mk
File metadata and controls
17 lines (13 loc) · 656 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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)'