Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
PushReactionGoal,
BuildGoal,
ArtifactGoal,
StagingDeploymentGoal,
StagingEndpointGoal,
StagingVerifiedGoal,
ProductionDeploymentGoal,
ProductionEndpointGoal);
export const LocalDeploymentGoals = new Goals(
"Local Deployment",
PushReactionGoal,
LocalDeploymentGoal,
LocalEndpointGoal);
export const UndeployEverywhereGoals = new Goals(
"Undeploy all environments",
LocalUndeploymentGoal,
StagingUndeploymentGoal,
ProductionUndeploymentGoal,
DeleteAfterUndeploysGoal,
);
export const RepositoryDeletionGoals = new Goals(
"Offer to delete repository",
DeleteRepositoryGoal,
);
displayName: "deploy to Prod",
completedDescription: "Deployed to Prod",
failedDescription: "Prod deployment failure",
}, StagingDockerDeploymentGoal);
export const NpmDeployGoals = new Goals(
"Node.js Deploy",
ReviewGoal,
AutofixGoal,
BuildGoal,
ArtifactGoal,
StagingDeploymentGoal,
StagingEndpointGoal,
);
export const NpmBuildGoals = new Goals(
"Node.js Build",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
NpmPublishGoal,
TagGoal,
);
export const NpmDockerGoals = new Goals(
"Node.js Docker Build",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
NpmPublishGoal,
export const LocalDeploymentGoals = new Goals(
"Local Deployment",
PushReactionGoal,
LocalDeploymentGoal,
LocalEndpointGoal);
export const UndeployEverywhereGoals = new Goals(
"Undeploy all environments",
LocalUndeploymentGoal,
StagingUndeploymentGoal,
ProductionUndeploymentGoal,
DeleteAfterUndeploysGoal,
);
export const RepositoryDeletionGoals = new Goals(
"Offer to delete repository",
DeleteRepositoryGoal,
);
NpmPublishGoal,
TagGoal,
);
export const NpmDockerGoals = new Goals(
"Node.js Docker Build",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
NpmPublishGoal,
DockerBuildGoal,
TagGoal,
);
export const NpmKubernetesDeployGoals = new Goals(
"Node.js Kubernetes Build and Deploy",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
NpmPublishGoal,
DockerBuildGoal,
TagGoal,
StagingDockerDeploymentGoal,
ProductionDockerDeploymentGoal,
);
ArtifactGoal,
StagingDeploymentGoal,
StagingEndpointGoal,
);
export const NpmBuildGoals = new Goals(
"Node.js Build",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
NpmPublishGoal,
TagGoal,
);
export const NpmDockerGoals = new Goals(
"Node.js Docker Build",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
NpmPublishGoal,
DockerBuildGoal,
TagGoal,
);
export const NpmKubernetesDeployGoals = new Goals(
"Node.js Kubernetes Build and Deploy",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
import { Goals } from "@atomist/sdm/api/goal/Goals";
import {
CodeInspectionGoal,
JustBuildGoal,
} from "@atomist/sdm/api/machine/wellKnownGoals";
/**
* Flow to build a library
* @type {Goals}
*/
export const LibraryGoals = new Goals(
"Library",
CodeInspectionGoal,
JustBuildGoal,
);
export const LocalEndpointGoal = new GoalWithPrecondition({
uniqueName: "FindLocalEndpoint",
environment: IndependentOfEnvironment,
orderedName: "2-endpoint",
displayName: "locate local service endpoint",
completedDescription: "Here is the local service endpoint",
}, LocalDeploymentGoal);
/**
* Special Goals object to be returned if changes are immaterial.
* The identity of this object is important.
* @type {Goals}
* @ModuleExport
*/
export const NoGoals = new Goals(
"No action needed",
NoGoal);
*/
export const HttpServiceGoals = new Goals(
"HTTP Service",
FingerprintGoal,
AutofixGoal,
CodeInspectionGoal,
PushReactionGoal,
BuildGoal,
ArtifactGoal,
StagingDeploymentGoal,
StagingEndpointGoal,
StagingVerifiedGoal,
ProductionDeploymentGoal,
ProductionEndpointGoal);
export const LocalDeploymentGoals = new Goals(
"Local Deployment",
PushReactionGoal,
LocalDeploymentGoal,
LocalEndpointGoal);
export const UndeployEverywhereGoals = new Goals(
"Undeploy all environments",
LocalUndeploymentGoal,
StagingUndeploymentGoal,
ProductionUndeploymentGoal,
DeleteAfterUndeploysGoal,
);
export const RepositoryDeletionGoals = new Goals(
"Offer to delete repository",
DeleteRepositoryGoal,
completedDescription: "Deployed to Test",
failedDescription: "Test deployment failure",
waitingForApprovalDescription: "Promote to Prod",
approvalRequired: true,
}, DockerBuildGoal);
export const ProductionDockerDeploymentGoal = new GoalWithPrecondition({
uniqueName: "DeployToProduction",
environment: ProductionEnvironment,
orderedName: "3-prod-deploy",
displayName: "deploy to Prod",
completedDescription: "Deployed to Prod",
failedDescription: "Prod deployment failure",
}, StagingDockerDeploymentGoal);
export const NpmDeployGoals = new Goals(
"Node.js Deploy",
ReviewGoal,
AutofixGoal,
BuildGoal,
ArtifactGoal,
StagingDeploymentGoal,
StagingEndpointGoal,
);
export const NpmBuildGoals = new Goals(
"Node.js Build",
VersionGoal,
ReviewGoal,
AutofixGoal,
BuildGoal,
NpmPublishGoal,
StagingVerifiedGoal,
} from "@atomist/sdm/api/machine/wellKnownGoals";
import {
LocalEndpointGoal,
LocalUndeploymentGoal,
StagingUndeploymentGoal,
} from "./commonGoals";
/**
* Goals for an Http service, mirroring a typical flow through
* staging to production.
* Goal sets are normally user defined, so this is largely
* an illustration.
* @type {Goals}
*/
export const HttpServiceGoals = new Goals(
"HTTP Service",
FingerprintGoal,
AutofixGoal,
CodeInspectionGoal,
PushReactionGoal,
BuildGoal,
ArtifactGoal,
StagingDeploymentGoal,
StagingEndpointGoal,
StagingVerifiedGoal,
ProductionDeploymentGoal,
ProductionEndpointGoal);
export const LocalDeploymentGoals = new Goals(
"Local Deployment",
PushReactionGoal,