2023-08-19 17:44:34 +03:00
|
|
|
-include environ.inc
|
|
|
|
|
|
|
|
BRANCH ?= $(shell git rev-parse --abbrev-ref HEAD)
|
2023-11-13 09:27:53 +03:00
|
|
|
IMAGE := neur0toxine/gitea-pages-server
|
2023-08-19 17:44:34 +03:00
|
|
|
TAG := latest
|
|
|
|
|
|
|
|
all: help
|
|
|
|
|
|
|
|
.PHONY: help
|
|
|
|
help: ## Show this help message
|
|
|
|
@awk 'BEGIN {FS = ":.*##"; printf "\nUsage:\n make \033[36m\033[0m\n"} /^[$$()% a-zA-Z_-]+:.*?##/ { printf " \033[36m%-15s\033[0m %s\n", $$1, $$2 } /^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0, 5) } ' $(MAKEFILE_LIST)
|
|
|
|
|
|
|
|
.PHONY: image
|
|
|
|
image: ## Build the Docker image
|
|
|
|
@docker buildx build \
|
|
|
|
--platform linux/amd64,linux/arm64 --push -t $(IMAGE):$(TAG) .
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean: ## Remove untracked files (excluding Git ignored files)
|
|
|
|
@git clean -f -d
|
|
|
|
|
|
|
|
.PHONY: clean-all
|
|
|
|
clean-all: ## Remove untracked and Git ignored files
|
|
|
|
@git clean -f -d -s
|