25 lines
709 B
Makefile
25 lines
709 B
Makefile
CONTAINER_NAME = "forgeflux/forgejo-init-script"
|
|
|
|
default: docker.build docker.run
|
|
|
|
docker.build: ## Build docker container
|
|
docker buildx build -t $(CONTAINER_NAME) --load .
|
|
|
|
docker.run: ## Run docker container
|
|
docker run \
|
|
--network ftest \
|
|
-e FORGEJO_URL=${FORGEJO_URL} \
|
|
-e FORGEJO_SSH_URL=${FORGEJO_SSH_URL} \
|
|
$(CONTAINER_NAME)
|
|
|
|
env.up: ## Bring environment up
|
|
docker-compose up -d
|
|
|
|
env.down: ## Destroy environment
|
|
docker-compose down --remove-orphans -v
|
|
|
|
env.config: ## Configure environment
|
|
tests.sh
|
|
|
|
help: ## Prints help for targets with comments
|
|
@cat $(MAKEFILE_LIST) | grep -E '^[a-zA-Z_-]+:.*?## .*$$' | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
|