mirror of
https://github.com/google-github-actions/setup-gcloud.git
synced 2026-08-25 04:49:23 +00:00
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>
17 lines
656 B
Makefile
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)'
|