-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
53 lines (41 loc) · 1.72 KB
/
Makefile
File metadata and controls
53 lines (41 loc) · 1.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
SHELL := /bin/bash
ENV ?= dev
SERVICE ?= sample-service
TAG ?= latest
.PHONY: help build test synth platform-check platform-plan platform-apply app-bootstrap app-deploy app-policy-test platform-progress
help:
@echo "make build # Build TypeScript"
@echo "make test # Run tests"
@echo "make synth # CDK synth"
@echo "make platform-check # Build + synth + lint placeholder"
@echo "make platform-plan ENV=dev # Plan platform changes"
@echo "make platform-apply ENV=dev # Apply platform changes"
@echo "make app-bootstrap SERVICE=name # Bootstrap app from template"
@echo "make app-deploy ENV=dev SERVICE=name TAG=v1.0.0"
@echo "make app-policy-test # Run local policy bundle checks"
@echo "make platform-progress # Show platform-as-product progress tracker"
build:
npm run build
test:
npm test
synth:
npx cdk synth
platform-check: build synth
@echo "[platform-check] add checkov/tfsec/cdk-nag in CI"
platform-plan:
@echo "[platform-plan] ENV=$(ENV)"
@echo "Use environment overlays in platform/environments/$(ENV)"
platform-apply:
@echo "[platform-apply] ENV=$(ENV)"
@echo "Run approved deploy pipeline for $(ENV)"
app-bootstrap:
@echo "[app-bootstrap] SERVICE=$(SERVICE)"
@echo "Scaffold from templates/service-catalog/template.yaml via Backstage"
app-deploy:
@echo "[app-deploy] ENV=$(ENV) SERVICE=$(SERVICE) TAG=$(TAG)"
@echo "Update GitOps manifest tag and let Argo CD reconcile"
app-policy-test:
@echo "[app-policy-test] run conftest against applications/gitops/base with applications/policy"
conftest test applications/gitops/base/*.yaml -p applications/policy
platform-progress:
@cat docs/platform-product-progress.md