Files
actions/docker.mk
Ole Christian Langfjæran 529a438c0b Create deploy status (#5)
* 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
2019-01-07 10:22:55 +01:00

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)