Prerequisites:
- have a kdevops.ts file
- have a Dockerfile
pnpm add --dev @mcanaleta/kdevops
add following script in package.json
"scripts": {
(...)
"devops": "kdevops"
}
pnpm devops init
cd terraform
terraform init
pnpm run devops build
work in progress
- pnpm
- google cloud
devops tools
the idea is to define a kdevops.ts file in the root of the project then run pnpm run devops ... to execute the devops tasks:
- generate terraform files
- generate cloudbuild.yaml ...
Example of kdevops.ts file:
import { GCBMicroservice } from "@mcanaleta/kdevops";
const service = new GCBMicroservice({
name: "backoffice",
...
});
service.cli();
w
pnpm add -w -D github:mcanaleta/kdevops