## This Makefile uses the help target explained in the following blogpost: ## ## https://victoria.dev/blog/how-to-create-a-self-documenting-makefile/ .DEFAULT_GOAL := help .PHONY: help help: ## Show this help @egrep -h '\s##\s' $(MAKEFILE_LIST) | \ sort | \ awk \ 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}' .PHONY: install install: ## Use `go install` to build and link the executable go install -a ./cmd/bottinagenda/ .PHONY: compose-ps compose-ps: compose-acceptance-ps ## Show state of containers of all pipelines .PHONY: compose-acceptance-up compose-acceptance-up: ## Build and run test containers using compose, then run the acceptance tests within docker-compose -f deployments/compose/bottinagenda-acceptance/compose.yaml up -d --build .PHONY: compose-acceptance-down compose-acceptance-down: ## Remove the containers created by acceptance pipeline docker-compose -f deployments/compose/bottinagenda-acceptance/compose.yaml down .PHONY: compose-acceptance-ps compose-acceptance-ps: ## Show state of containers from acceptance pipeline docker-compose -f deployments/compose/bottinagenda-acceptance/compose.yaml ps .PHONY: compose-acceptance-logs compose-acceptance-logs: ## Follow the logs for acceptance container docker-compose -f deployments/compose/bottinagenda-acceptance/compose.yaml logs -f bottinagenda_api .PHONY: compose-acceptance-test compose-acceptance-test: compose-acceptance-up compose-acceptance-logs ## Start acceptance pipeline and follow `go test` logs on stdout