publish.yaml / publish (push) Successful in 4s
Enforces which source branches may merge into which target branches, configured via a rules input (one target:allowed,allowed per line, glob-capable). Empty rules (default) skips enforcement entirely, so repos can adopt it without immediately gating on rules they have not configured. Extracted for reuse across repos moving to a gitflow-style branch promotion model, starting with stat-tackler-api.
30 lines
753 B
Makefile
30 lines
753 B
Makefile
ACTIONS := \
|
|
docker \
|
|
node \
|
|
git/create_tag \
|
|
git/promotion-gate \
|
|
helm/diff \
|
|
helm/template \
|
|
helm/upgrade \
|
|
infisical/fetch-secret \
|
|
infra/update_version \
|
|
kubectl/configure \
|
|
test/npm \
|
|
trivy/image_scan \
|
|
trivy/namespace_scan
|
|
|
|
.PHONY: help docs
|
|
|
|
help: ## Show this help
|
|
@awk 'BEGIN {FS = ":.*##"; printf "Usage: make \033[36m<target>\033[0m [REGION=us-east-2]\n"} \
|
|
/^##@/ { printf "\n\033[1m%s\033[0m\n", substr($$0,5) } \
|
|
/^[a-zA-Z_-]+:.*?##/ { printf " \033[36m%-16s\033[0m %s\n", $$1, $$2 }' \
|
|
$(MAKEFILE_LIST)
|
|
|
|
##@ Setup
|
|
docs: ## Create litellm-secrets (prompts for master_key)
|
|
@for dir in $(ACTIONS); do \
|
|
echo "Generating docs for $$dir"; \
|
|
(cd $$dir && action-docs --no-banner --update-readme README.md); \
|
|
done
|