mirror of
https://github.com/zhigang1992/actions.git
synced 2026-01-12 17:12:24 +08:00
* Create a simple status update with curl * Add some lint and a new entrypoint.sh * Use key-value rather than json resultfile * Switch to pure shell * Remove unused line * Verbose it * Correct way of getting deployment-id * Use json in statusupdate * string interpolation * Clean up and lint it * Rename to github-deploy * Add licenses and README
17 lines
662 B
Makefile
17 lines
662 B
Makefile
IMAGE_NAME=$(shell basename $(CURDIR))
|
|
|
|
.PHONY: docker-lint
|
|
docker-lint: ## Run Dockerfile Lint on all dockerfiles.
|
|
$(COMMAND) 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)
|