IMAGE=deploymentagent VERSION=latest KEY_NAME=/path/to/private-key .DEFAULT_GOAL := help .PHONY: build run clean test all: build build: ## Build the container export SSH_KEY="$$(base64 $(KEY_NAME))" && \ export VERSION=$(VERSION) && \ export IMAGE=$(IMAGE) && \ docker-compose build run: ## Launch testing environment export SSH_KEY= && \ export VERSION=$(VERSION) && \ export IMAGE=$(IMAGE) && \ docker-compose up clean: ## Remove containers and volumes docker-compose down --remove-orphans && docker volume rm podman-socket test: ## Run unit tests (be sure to build and launch the testing environment first) cd src/deploymentagent; go test -v help: @grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'