@codefresh-io/yaml-validator
Version:
An NPM module/CLI for validating the Codefresh YAML
42 lines (35 loc) • 1.63 kB
JavaScript
;
const docBaseUrl = process.env.DOCS_BASE_URL || 'https://codefresh.io/docs/docs/pipelines/steps';
const DocumentationLinks = {
'freestyle': `${docBaseUrl}/freestyle/`,
'build': `${docBaseUrl}/build/`,
'push': `${docBaseUrl}/push/`,
'deploy': `${docBaseUrl}/deploy/`,
'git-clone': `${docBaseUrl}/git-clone/`,
'launch-composition': `${docBaseUrl}/launch-composition/`,
'pending-approval': `${docBaseUrl}/approval/`,
'composition': `${docBaseUrl}/composition/`,
};
const IntegrationLinks = {
'git-clone': `https://codefresh.io/docs/docs/integrations/git-providers/`,
'deploy': `https://codefresh.io/docs/docs/deploy-to-kubernetes/add-kubernetes-cluster/`,
'push': `https://codefresh.io/docs/docs/docker-registries/external-docker-registries/`,
'build': `https://codefresh.io/docs/docs/docker-registries/external-docker-registries/`,
'composition': `https://codefresh.io/docs/docs/docker-registries/external-docker-registries/`,
'freestyle': `https://codefresh.io/docs/docs/docker-registries/external-docker-registries/`,
'helm': 'https://codefresh.io/docs/docs/new-helm/helm2-support',
'variables': 'https://codefresh.io/docs/docs/codefresh-yaml/variables/'
};
const ExternalLinks = {
'reference-identifiers': 'https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.html',
};
const CustomDocumentationLinks = {
'steps-versioning': new URL('#versioning-for-typed-steps', docBaseUrl).href,
};
module.exports = {
docBaseUrl,
CustomDocumentationLinks,
DocumentationLinks,
IntegrationLinks,
ExternalLinks,
};