UNPKG

@topgroup/diginext

Version:

A BUILD SERVER & CLI to deploy apps to any Kubernetes clusters.

64 lines (63 loc) 2.23 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ReleaseModel = exports.releaseSchema = void 0; const mongoose_1 = require("mongoose"); const Base_1 = require("./Base"); exports.releaseSchema = new mongoose_1.Schema({ ...Base_1.baseSchemaDefinitions, name: { type: String }, image: { type: String }, buildTag: { type: String }, buildNumber: { type: Number }, cliVersion: { type: String }, appVersion: { type: String }, env: { type: String }, envVars: [{ name: { type: String }, value: { type: String } }], prereleaseEnvironment: [{ type: String }], diginext: { type: String }, appConfig: { type: Object }, namespace: { type: String }, prodYaml: { type: String }, preYaml: { type: String }, prereleaseUrl: { type: String }, productionUrl: { type: String }, /** * Deployment YAML */ deploymentYaml: { type: String }, /** * Release endpoint URL (development/.../production URL) */ endpoint: { type: String }, createdBy: { type: String }, branch: { type: String }, /** * @deprecated * Short name of the cloud provider of the cluster to deploy to. */ provider: { type: String }, /** * Short name of the targeted cluster to deploy to. */ cluster: { type: String }, projectSlug: { type: String }, appSlug: { type: String }, providerProjectId: { type: String }, buildStatus: { type: String }, status: { type: String }, message: { type: String }, startTime: { type: Date }, endTime: { type: Date }, duration: { type: Number }, /** * */ active: { type: Boolean }, screenshot: { type: String }, build: { type: mongoose_1.Schema.Types.ObjectId, ref: "builds" }, app: { type: mongoose_1.Schema.Types.ObjectId, ref: "apps" }, owner: { type: mongoose_1.Schema.Types.ObjectId, ref: "users" }, project: { type: mongoose_1.Schema.Types.ObjectId, ref: "projects" }, workspace: { type: mongoose_1.Schema.Types.ObjectId, ref: "workspaces" }, }, { collection: "releases", timestamps: true }); exports.ReleaseModel = (0, mongoose_1.model)("Release", exports.releaseSchema, "releases");