0.1.8 • Published 11 months ago

@mcanaleta/kdevops v0.1.8

Weekly downloads
-
License
-
Repository
-
Last release
11 months ago

usage instructions

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

opinionated

  • 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

Add to a project

pnpm add -w -D github:mcanaleta/kdevops