@soft-stech/pipelines-as-code
v0.1.0
Published
Pipelines-as-Code models
Downloads
6
Readme
@kubernetes-models/pipelines-as-code
Pipelines-as-Code models.
Installation
Install with npm.
npm install @kubernetes-models/pipelines-as-code
Usage
import { Repository } from "@kubernetes-models/pipelines-as-code/pipelinesascode.tekton.dev/v1alpha1/Repository";
// Create a new Application
const repository = new Repository({
metadata: {
name: "pac-repo"
},
spec: {
url: "https://github.com/linda/project",
git_provider: {
secret: {
name: 'my-secret',
key: 'repo-secret',
},
webhook_secret: {
name: 'my-secret',
key: 'webhook-secret',
},
},
},
});
// Validate against JSON schema
app.validate();
License
MIT