@catladder/cli 0.0.0-next-e9e5af68 → 0.0.0-next-1c65899f
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundles/catenv/index.js +6990 -6861
- package/dist/bundles/cli/index.js +10953 -10889
- package/dist/bundles/skills/catladder-cli/references/commands.md +37 -2
- package/dist/bundles/skills/catladder-pipelines/SKILL.md +6 -6
- package/dist/bundles/skills/catladder-secrets/SKILL.md +42 -9
- package/dist/cli/src/adapters/baseContext.d.ts +18 -18
- package/dist/cli/src/adapters/baseContext.js +34 -34
- package/dist/cli/src/adapters/nonInteractive.d.ts +2 -2
- package/dist/cli/src/adapters/nonInteractive.js +20 -22
- package/dist/cli/src/adapters/programmatic.d.ts +12 -12
- package/dist/cli/src/adapters/programmatic.js +46 -51
- package/dist/cli/src/adapters/terminal.d.ts +15 -15
- package/dist/cli/src/adapters/terminal.js +154 -176
- package/dist/cli/src/adapters/vaultManagerAccess.d.ts +1 -1
- package/dist/cli/src/adapters/vaultManagerAccess.js +11 -16
- package/dist/cli/src/apps/catenv/catenv.d.ts +4 -4
- package/dist/cli/src/apps/catenv/catenv.js +20 -20
- package/dist/cli/src/apps/catenv/printVariables.d.ts +1 -1
- package/dist/cli/src/apps/catenv/printVariables.js +30 -33
- package/dist/cli/src/apps/catenv/types.d.ts +4 -4
- package/dist/cli/src/apps/catenv/types.js +2 -4
- package/dist/cli/src/apps/catenv/utils.d.ts +6 -9
- package/dist/cli/src/apps/catenv/utils.js +21 -25
- package/dist/cli/src/apps/catenv/verboseBanner.d.ts +1 -1
- package/dist/cli/src/apps/catenv/verboseBanner.js +24 -20
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeDotEnvFiles.js +22 -25
- package/dist/cli/src/apps/catenv/writeEnvDTs.d.ts +1 -1
- package/dist/cli/src/apps/catenv/writeEnvDTs.js +32 -31
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.d.ts +6 -6
- package/dist/cli/src/apps/cli/commands/mongodb/utils/index.js +52 -56
- package/dist/cli/src/apps/cli/commands/project/doctor/DoctorReport.d.ts +13 -13
- package/dist/cli/src/apps/cli/commands/project/doctor/DoctorReport.js +50 -62
- package/dist/cli/src/apps/cli/commands/project/doctor/GcloudProjectInspector.d.ts +9 -9
- package/dist/cli/src/apps/cli/commands/project/doctor/GcloudProjectInspector.js +43 -44
- package/dist/cli/src/apps/cli/commands/project/doctor/checkCloudRun.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkCloudRun.js +75 -93
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGithub.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGithub.js +86 -78
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGitlab.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkGitlab.js +58 -57
- package/dist/cli/src/apps/cli/commands/project/doctor/checkStore.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/checkStore.js +25 -30
- package/dist/cli/src/apps/cli/commands/project/doctor/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/doctor/index.js +24 -25
- package/dist/cli/src/apps/cli/commands/project/setup/ensureGcloudProjectNumbers.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/ensureGcloudProjectNumbers.js +34 -45
- package/dist/cli/src/apps/cli/commands/project/setup/index.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/index.js +31 -27
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/logSection.js +13 -15
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAccessTokens.js +34 -43
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupAgents.js +130 -137
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.d.ts +3 -3
- package/dist/cli/src/apps/cli/commands/project/setup/setupCloudRun.js +49 -46
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupContext.js +13 -15
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupKubernetes.js +69 -70
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/setup/setupTopic.js +7 -15
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/autocompletions.js +16 -21
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureCluster.js +22 -26
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.d.ts +1 -1
- package/dist/cli/src/apps/cli/commands/project/utils/ensureNamespace.js +30 -35
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.d.ts +1 -1
- package/dist/cli/src/apps/cli/utils/getGoogleAuthUserNumber.js +15 -17
- package/dist/cli/src/catci.d.ts +1 -1
- package/dist/cli/src/catci.js +63 -65
- package/dist/cli/src/catenv.d.ts +1 -1
- package/dist/cli/src/catenv.js +44 -31
- package/dist/cli/src/cli.d.ts +1 -1
- package/dist/cli/src/cli.js +185 -170
- package/dist/cli/src/commands/availability.d.ts +1 -1
- package/dist/cli/src/commands/availability.js +13 -16
- package/dist/cli/src/commands/cloudSQL/commandRestoreDb.d.ts +45 -45
- package/dist/cli/src/commands/cloudSQL/commandRestoreDb.js +92 -103
- package/dist/cli/src/commands/fun/commandDadjoke.d.ts +1 -1
- package/dist/cli/src/commands/fun/commandDadjoke.js +18 -24
- package/dist/cli/src/commands/fun/commandStarwars.d.ts +1 -1
- package/dist/cli/src/commands/fun/commandStarwars.js +12 -14
- package/dist/cli/src/commands/general/commandKubeCurrentContext.d.ts +1 -1
- package/dist/cli/src/commands/general/commandKubeCurrentContext.js +10 -12
- package/dist/cli/src/commands/general/commandKubeGetShell.d.ts +11 -11
- package/dist/cli/src/commands/general/commandKubeGetShell.js +26 -28
- package/dist/cli/src/commands/general/commandKubeListNamespaces.d.ts +1 -1
- package/dist/cli/src/commands/general/commandKubeListNamespaces.js +13 -15
- package/dist/cli/src/commands/general/commandKubeListPods.d.ts +6 -6
- package/dist/cli/src/commands/general/commandKubeListPods.js +19 -21
- package/dist/cli/src/commands/general/commandKubeListSecrets.d.ts +6 -6
- package/dist/cli/src/commands/general/commandKubeListSecrets.js +19 -21
- package/dist/cli/src/commands/general/commandKubePortForward.d.ts +19 -19
- package/dist/cli/src/commands/general/commandKubePortForward.js +29 -37
- package/dist/cli/src/commands/general/commandKubeStopPortforward.d.ts +6 -6
- package/dist/cli/src/commands/general/commandKubeStopPortforward.js +13 -19
- package/dist/cli/src/commands/index.d.ts +5 -1
- package/dist/cli/src/commands/index.js +52 -251
- package/dist/cli/src/commands/index.js.map +1 -1
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.d.ts +15 -15
- package/dist/cli/src/commands/mongodb/commandMongoDestroyMember.js +76 -73
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.d.ts +15 -15
- package/dist/cli/src/commands/mongodb/commandMongoGetShell.js +26 -28
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.d.ts +20 -20
- package/dist/cli/src/commands/mongodb/commandMongoPortForward.js +45 -52
- package/dist/cli/src/commands/project/commandCloudSqlProxy.d.ts +12 -12
- package/dist/cli/src/commands/project/commandCloudSqlProxy.js +107 -110
- package/dist/cli/src/commands/project/commandConfigSecrets.d.ts +13 -8
- package/dist/cli/src/commands/project/commandConfigSecrets.js +71 -32
- package/dist/cli/src/commands/project/commandConfigSecrets.js.map +1 -1
- package/dist/cli/src/commands/project/commandDoctor.d.ts +7 -7
- package/dist/cli/src/commands/project/commandDoctor.js +18 -20
- package/dist/cli/src/commands/project/commandEnvVars.d.ts +7 -7
- package/dist/cli/src/commands/project/commandEnvVars.js +21 -26
- package/dist/cli/src/commands/project/commandGetMyTotalWorktime.d.ts +1 -1
- package/dist/cli/src/commands/project/commandGetMyTotalWorktime.js +12 -14
- package/dist/cli/src/commands/project/commandGitlabCi.d.ts +11 -11
- package/dist/cli/src/commands/project/commandGitlabCi.js +82 -91
- package/dist/cli/src/commands/project/commandOpenEnv.d.ts +7 -7
- package/dist/cli/src/commands/project/commandOpenEnv.js +24 -31
- package/dist/cli/src/commands/project/commandOpenGit.d.ts +1 -1
- package/dist/cli/src/commands/project/commandOpenGit.js +10 -12
- package/dist/cli/src/commands/project/commandOpenLogs.d.ts +7 -7
- package/dist/cli/src/commands/project/commandOpenLogs.js +34 -37
- package/dist/cli/src/commands/project/commandPortForward.d.ts +24 -24
- package/dist/cli/src/commands/project/commandPortForward.js +59 -78
- package/dist/cli/src/commands/project/commandProjectRestoreDb.d.ts +18 -18
- package/dist/cli/src/commands/project/commandProjectRestoreDb.js +156 -147
- package/dist/cli/src/commands/project/commandRenewToken.d.ts +1 -1
- package/dist/cli/src/commands/project/commandRenewToken.js +10 -12
- package/dist/cli/src/commands/project/commandSecretsClearBackups.d.ts +6 -6
- package/dist/cli/src/commands/project/commandSecretsClearBackups.js +17 -19
- package/dist/cli/src/commands/project/commandSecretsSyncGithub.d.ts +22 -22
- package/dist/cli/src/commands/project/commandSecretsSyncGithub.js +136 -144
- package/dist/cli/src/commands/project/commandSecurityEvaluate.d.ts +1 -1
- package/dist/cli/src/commands/project/commandSecurityEvaluate.js +17 -20
- package/dist/cli/src/commands/project/commandSetup.d.ts +7 -7
- package/dist/cli/src/commands/project/commandSetup.js +18 -20
- package/dist/cli/src/commands/project/k8s/commandDeletePods.d.ts +12 -12
- package/dist/cli/src/commands/project/k8s/commandDeletePods.js +38 -40
- package/dist/cli/src/commands/project/k8s/commandDeleteProject.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandDeleteProject.js +28 -35
- package/dist/cli/src/commands/project/k8s/commandGetShell.d.ts +12 -12
- package/dist/cli/src/commands/project/k8s/commandGetShell.js +31 -31
- package/dist/cli/src/commands/project/k8s/commandListPods.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandListPods.js +21 -23
- package/dist/cli/src/commands/project/k8s/commandNamespace.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandNamespace.js +19 -21
- package/dist/cli/src/commands/project/k8s/commandPauseProject.d.ts +7 -7
- package/dist/cli/src/commands/project/k8s/commandPauseProject.js +28 -35
- package/dist/cli/src/commands/project/k8s/commandTriggerCronjob.d.ts +22 -22
- package/dist/cli/src/commands/project/k8s/commandTriggerCronjob.js +67 -76
- package/dist/cli/src/commands/project/secrets/commandSecretsList.d.ts +24 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsList.js +64 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsList.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPull.d.ts +19 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPull.js +48 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPull.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPush.d.ts +19 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPush.js +74 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsPush.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsSet.d.ts +24 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsSet.js +82 -0
- package/dist/cli/src/commands/project/secrets/commandSecretsSet.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/document.d.ts +47 -0
- package/dist/cli/src/commands/project/secrets/document.js +180 -0
- package/dist/cli/src/commands/project/secrets/document.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/parseKeysInput.d.ts +2 -0
- package/dist/cli/src/commands/project/secrets/parseKeysInput.js +10 -0
- package/dist/cli/src/commands/project/secrets/parseKeysInput.js.map +1 -0
- package/dist/cli/src/commands/project/secrets/scope.d.ts +35 -0
- package/dist/cli/src/commands/project/secrets/scope.js +113 -0
- package/dist/cli/src/commands/project/secrets/scope.js.map +1 -0
- package/dist/cli/src/commands/security/commandSecurityAuditCiJob.d.ts +26 -26
- package/dist/cli/src/commands/security/commandSecurityAuditCiJob.js +62 -73
- package/dist/cli/src/commands/security/commandSecurityAuditCreate.d.ts +21 -21
- package/dist/cli/src/commands/security/commandSecurityAuditCreate.js +47 -51
- package/dist/cli/src/commands/security/commandSecurityAuditEvaluate.d.ts +6 -6
- package/dist/cli/src/commands/security/commandSecurityAuditEvaluate.js +22 -29
- package/dist/cli/src/completion.d.ts +1 -1
- package/dist/cli/src/completion.js +130 -129
- package/dist/cli/src/config/getProjectConfig.d.ts +6 -8
- package/dist/cli/src/config/getProjectConfig.js +92 -94
- package/dist/cli/src/config/parseChoice.d.ts +3 -3
- package/dist/cli/src/config/parseChoice.js +6 -11
- package/dist/cli/src/core/defineCommand.d.ts +1 -1
- package/dist/cli/src/core/defineCommand.js +4 -6
- package/dist/cli/src/core/index.d.ts +3 -3
- package/dist/cli/src/core/index.js +9 -46
- package/dist/cli/src/core/registry.d.ts +1 -1
- package/dist/cli/src/core/registry.js +10 -12
- package/dist/cli/src/core/runner.d.ts +3 -3
- package/dist/cli/src/core/runner.js +8 -10
- package/dist/cli/src/core/types.d.ts +70 -70
- package/dist/cli/src/core/types.js +14 -15
- package/dist/cli/src/gcloud/artifactsRegistry.d.ts +3 -3
- package/dist/cli/src/gcloud/artifactsRegistry.js +11 -12
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudRun/openCloudRunDashboards.js +12 -19
- package/dist/cli/src/gcloud/cloudSql/copyDb.d.ts +9 -9
- package/dist/cli/src/gcloud/cloudSql/copyDb.js +20 -31
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.d.ts +1 -1
- package/dist/cli/src/gcloud/cloudSql/parseConnectionString.js +10 -12
- package/dist/cli/src/gcloud/cloudSql/startProxy.d.ts +4 -4
- package/dist/cli/src/gcloud/cloudSql/startProxy.js +39 -55
- package/dist/cli/src/gcloud/enableServices.d.ts +2 -2
- package/dist/cli/src/gcloud/enableServices.js +6 -8
- package/dist/cli/src/gcloud/getProjectNumber.d.ts +1 -1
- package/dist/cli/src/gcloud/getProjectNumber.js +10 -12
- package/dist/cli/src/gcloud/openDashboard.d.ts +1 -1
- package/dist/cli/src/gcloud/openDashboard.js +13 -17
- package/dist/cli/src/gcloud/serviceAccountNames.d.ts +11 -11
- package/dist/cli/src/gcloud/serviceAccountNames.js +27 -34
- package/dist/cli/src/gcloud/serviceAccounts.d.ts +6 -6
- package/dist/cli/src/gcloud/serviceAccounts.js +37 -46
- package/dist/cli/src/git/getGetMainBranch.d.ts +1 -1
- package/dist/cli/src/git/getGetMainBranch.js +5 -9
- package/dist/cli/src/git/gitConfig.d.ts +6 -11
- package/dist/cli/src/git/gitConfig.js +11 -17
- package/dist/cli/src/git/gitProjectInformation.d.ts +6 -6
- package/dist/cli/src/git/gitProjectInformation.js +20 -30
- package/dist/cli/src/git/index.d.ts +1 -1
- package/dist/cli/src/git/index.js +16 -23
- package/dist/cli/src/index.d.ts +1 -1
- package/dist/cli/src/index.js +2 -4
- package/dist/cli/src/k8sApi/index.d.ts +1 -1
- package/dist/cli/src/k8sApi/index.js +12 -14
- package/dist/cli/src/kubernetes/index.d.ts +1 -1
- package/dist/cli/src/kubernetes/index.js +17 -24
- package/dist/cli/src/kubernetes/openKubernetesDashboards.d.ts +1 -1
- package/dist/cli/src/kubernetes/openKubernetesDashboards.js +33 -35
- package/dist/cli/src/kubernetes/portForward.d.ts +1 -1
- package/dist/cli/src/kubernetes/portForward.js +5 -7
- package/dist/cli/src/packageInfos.d.ts +1 -1
- package/dist/cli/src/packageInfos.js +3 -5
- package/dist/cli/src/release/changesets.d.ts +4 -4
- package/dist/cli/src/release/changesets.js +68 -60
- package/dist/cli/src/release/changesetsReleaseJob.d.ts +1 -1
- package/dist/cli/src/release/changesetsReleaseJob.js +99 -99
- package/dist/cli/src/scripts/generateCliSkillReference.d.ts +1 -1
- package/dist/cli/src/scripts/generateCliSkillReference.js +85 -62
- package/dist/cli/src/security/auditDocument.d.ts +16 -16
- package/dist/cli/src/security/auditDocument.js +65 -54
- package/dist/cli/src/security/createSecurityAuditMergeRequest.d.ts +6 -11
- package/dist/cli/src/security/createSecurityAuditMergeRequest.js +43 -43
- package/dist/cli/src/security/evaluateSecurityAudit.d.ts +3 -5
- package/dist/cli/src/security/evaluateSecurityAudit.js +12 -16
- package/dist/cli/src/store/updateCatladderStore.d.ts +4 -4
- package/dist/cli/src/store/updateCatladderStore.js +12 -16
- package/dist/cli/src/types/types.d.ts +13 -13
- package/dist/cli/src/types/types.js +2 -4
- package/dist/cli/src/utils/boxWithAscii.d.ts +1 -1
- package/dist/cli/src/utils/boxWithAscii.js +10 -12
- package/dist/cli/src/utils/cluster.d.ts +1 -1
- package/dist/cli/src/utils/cluster.js +6 -8
- package/dist/cli/src/utils/concurrency.d.ts +1 -1
- package/dist/cli/src/utils/concurrency.js +13 -17
- package/dist/cli/src/utils/editAsFile.d.ts +1 -1
- package/dist/cli/src/utils/editAsFile.js +17 -25
- package/dist/cli/src/utils/files.d.ts +1 -1
- package/dist/cli/src/utils/files.js +12 -15
- package/dist/cli/src/utils/getEditor.d.ts +2 -2
- package/dist/cli/src/utils/getEditor.js +14 -20
- package/dist/cli/src/utils/github.d.ts +1 -1
- package/dist/cli/src/utils/github.js +60 -47
- package/dist/cli/src/utils/gitlab.d.ts +9 -9
- package/dist/cli/src/utils/gitlab.js +173 -189
- package/dist/cli/src/utils/log.d.ts +2 -2
- package/dist/cli/src/utils/log.js +16 -18
- package/dist/cli/src/utils/portForwards.d.ts +5 -5
- package/dist/cli/src/utils/portForwards.js +31 -32
- package/dist/cli/src/utils/preferences.d.ts +1 -1
- package/dist/cli/src/utils/preferences.js +36 -43
- package/dist/cli/src/utils/projects/index.d.ts +1 -1
- package/dist/cli/src/utils/projects/index.js +21 -24
- package/dist/cli/src/utils/promise.d.ts +1 -1
- package/dist/cli/src/utils/promise.js +6 -8
- package/dist/cli/src/utils/readStdin.d.ts +2 -0
- package/dist/cli/src/utils/readStdin.js +13 -0
- package/dist/cli/src/utils/readStdin.js.map +1 -0
- package/dist/cli/src/utils/shell.d.ts +1 -1
- package/dist/cli/src/utils/shell.js +19 -20
- package/dist/cli/src/vault/BitwardenVault.d.ts +20 -20
- package/dist/cli/src/vault/BitwardenVault.js +98 -84
- package/dist/cli/src/vault/GitlabVault.d.ts +4 -4
- package/dist/cli/src/vault/GitlabVault.js +13 -15
- package/dist/cli/src/vault/VaultManager.d.ts +32 -32
- package/dist/cli/src/vault/VaultManager.js +104 -98
- package/dist/cli/src/vault/bw.d.ts +3 -5
- package/dist/cli/src/vault/bw.js +54 -61
- package/dist/cli/src/vault/cache.d.ts +9 -9
- package/dist/cli/src/vault/cache.js +27 -33
- package/dist/cli/src/vault/index.d.ts +1 -1
- package/dist/cli/src/vault/index.js +18 -40
- package/dist/cli/src/vault/types.d.ts +16 -16
- package/dist/cli/src/vault/types.js +2 -4
- package/dist/pipeline/src/agentSkills/generateAgentSkills.d.ts +1 -1
- package/dist/pipeline/src/agentSkills/generateAgentSkills.js +47 -43
- package/dist/pipeline/src/agentSkills/index.d.ts +1 -1
- package/dist/pipeline/src/agentSkills/index.js +16 -23
- package/dist/pipeline/src/agentSkills/shippedSkills.d.ts +8 -8
- package/dist/pipeline/src/agentSkills/shippedSkills.js +38 -35
- package/dist/pipeline/src/agentSkills/types.d.ts +8 -8
- package/dist/pipeline/src/agentSkills/types.js +13 -14
- package/dist/pipeline/src/backends/github/GithubBackend.d.ts +9 -9
- package/dist/pipeline/src/backends/github/GithubBackend.js +253 -276
- package/dist/pipeline/src/backends/github/GithubBackend.js.map +1 -1
- package/dist/pipeline/src/backends/github/ciVariables.d.ts +1 -1
- package/dist/pipeline/src/backends/github/ciVariables.js +15 -17
- package/dist/pipeline/src/backends/github/createGithubJobs.d.ts +3 -3
- package/dist/pipeline/src/backends/github/createGithubJobs.js +316 -264
- package/dist/pipeline/src/backends/github/githubReleaseJobs.d.ts +3 -3
- package/dist/pipeline/src/backends/github/githubReleaseJobs.js +64 -71
- package/dist/pipeline/src/backends/github/index.d.ts +1 -1
- package/dist/pipeline/src/backends/github/index.js +16 -23
- package/dist/pipeline/src/backends/github/scriptFiles.d.ts +8 -8
- package/dist/pipeline/src/backends/github/scriptFiles.js +27 -29
- package/dist/pipeline/src/backends/github/scriptFunctions.d.ts +1 -1
- package/dist/pipeline/src/backends/github/scriptFunctions.js +10 -10
- package/dist/pipeline/src/backends/gitlab/GitlabBackend.d.ts +13 -13
- package/dist/pipeline/src/backends/gitlab/GitlabBackend.js +163 -178
- package/dist/pipeline/src/backends/gitlab/GitlabBackend.js.map +1 -1
- package/dist/pipeline/src/backends/gitlab/cache.d.ts +5 -5
- package/dist/pipeline/src/backends/gitlab/cache.js +24 -26
- package/dist/pipeline/src/backends/gitlab/ciVariables.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/ciVariables.js +9 -11
- package/dist/pipeline/src/backends/gitlab/createGitlabJobs.d.ts +4 -4
- package/dist/pipeline/src/backends/gitlab/createGitlabJobs.js +277 -289
- package/dist/pipeline/src/backends/gitlab/createGitlabJobs.js.map +1 -1
- package/dist/pipeline/src/backends/gitlab/createGitlabPipeline.d.ts +2 -7
- package/dist/pipeline/src/backends/gitlab/createGitlabPipeline.js +66 -65
- package/dist/pipeline/src/backends/gitlab/createGitlabPipeline.js.map +1 -1
- package/dist/pipeline/src/backends/gitlab/getPipelineStages.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/getPipelineStages.js +10 -8
- package/dist/pipeline/src/backends/gitlab/gitlabReleaseJobs.d.ts +34 -34
- package/dist/pipeline/src/backends/gitlab/gitlabReleaseJobs.js +55 -45
- package/dist/pipeline/src/backends/gitlab/index.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/index.js +16 -23
- package/dist/pipeline/src/backends/gitlab/sortGitLabJobDefProps.d.ts +1 -1
- package/dist/pipeline/src/backends/gitlab/sortGitLabJobDefProps.js +40 -10
- package/dist/pipeline/src/backends/index.d.ts +1 -1
- package/dist/pipeline/src/backends/index.js +41 -56
- package/dist/pipeline/src/backends/types.d.ts +19 -19
- package/dist/pipeline/src/backends/types.js +2 -4
- package/dist/pipeline/src/bash/BashExpression.d.ts +18 -18
- package/dist/pipeline/src/bash/BashExpression.js +45 -44
- package/dist/pipeline/src/bash/bashEscape.d.ts +4 -6
- package/dist/pipeline/src/bash/bashEscape.js +77 -67
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.d.ts +5 -3
- package/dist/pipeline/src/bash/bashExpressionPerPipelineType.js +6 -7
- package/dist/pipeline/src/bash/bashYaml.d.ts +1 -1
- package/dist/pipeline/src/bash/bashYaml.js +46 -41
- package/dist/pipeline/src/bash/ciVariables.d.ts +2 -2
- package/dist/pipeline/src/bash/ciVariables.js +10 -12
- package/dist/pipeline/src/bash/getInjectVarsScript.d.ts +1 -1
- package/dist/pipeline/src/bash/getInjectVarsScript.js +14 -11
- package/dist/pipeline/src/bash/index.d.ts +1 -1
- package/dist/pipeline/src/bash/index.js +16 -23
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.d.ts +1 -1
- package/dist/pipeline/src/build/artifacts/createBuildJobArtifact.js +49 -41
- package/dist/pipeline/src/build/base/constants.d.ts +4 -4
- package/dist/pipeline/src/build/base/constants.js +6 -8
- package/dist/pipeline/src/build/base/createAppBuildJob.d.ts +3 -3
- package/dist/pipeline/src/build/base/createAppBuildJob.js +53 -47
- package/dist/pipeline/src/build/base/createArtifactsConfig.d.ts +1 -1
- package/dist/pipeline/src/build/base/createArtifactsConfig.js +25 -16
- package/dist/pipeline/src/build/base/createBuildJobDefinition.d.ts +3 -3
- package/dist/pipeline/src/build/base/createBuildJobDefinition.js +22 -16
- package/dist/pipeline/src/build/base/index.d.ts +4 -4
- package/dist/pipeline/src/build/base/index.js +34 -15
- package/dist/pipeline/src/build/base/writeBuildInfo.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeBuildInfo.js +7 -7
- package/dist/pipeline/src/build/base/writeDotEnv.d.ts +1 -1
- package/dist/pipeline/src/build/base/writeDotEnv.js +21 -19
- package/dist/pipeline/src/build/cache/createJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/createJobCache.js +55 -58
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.d.ts +1 -1
- package/dist/pipeline/src/build/cache/getAllCacheConfigsFromConfig.js +23 -16
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.d.ts +1 -1
- package/dist/pipeline/src/build/cache/transformLegacyJobCache.js +12 -14
- package/dist/pipeline/src/build/custom/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/custom/buildJob.js +16 -16
- package/dist/pipeline/src/build/custom/index.d.ts +1 -1
- package/dist/pipeline/src/build/custom/index.js +8 -7
- package/dist/pipeline/src/build/custom/testJob.d.ts +2 -2
- package/dist/pipeline/src/build/custom/testJob.js +71 -67
- package/dist/pipeline/src/build/docker.d.ts +45 -51
- package/dist/pipeline/src/build/docker.js +139 -116
- package/dist/pipeline/src/build/index.d.ts +17 -13
- package/dist/pipeline/src/build/index.js +73 -80
- package/dist/pipeline/src/build/node/buildJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/buildJob.js +45 -35
- package/dist/pipeline/src/build/node/cache.d.ts +1 -1
- package/dist/pipeline/src/build/node/cache.js +79 -52
- package/dist/pipeline/src/build/node/constants.d.ts +4 -4
- package/dist/pipeline/src/build/node/constants.js +6 -8
- package/dist/pipeline/src/build/node/index.d.ts +1 -1
- package/dist/pipeline/src/build/node/index.js +17 -13
- package/dist/pipeline/src/build/node/meteor.d.ts +1 -1
- package/dist/pipeline/src/build/node/meteor.js +59 -40
- package/dist/pipeline/src/build/node/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/node/testJob.js +100 -75
- package/dist/pipeline/src/build/node/yarn.d.ts +2 -2
- package/dist/pipeline/src/build/node/yarn.js +51 -33
- package/dist/pipeline/src/build/rails/build.d.ts +1 -1
- package/dist/pipeline/src/build/rails/build.js +44 -37
- package/dist/pipeline/src/build/rails/index.d.ts +1 -1
- package/dist/pipeline/src/build/rails/index.js +8 -7
- package/dist/pipeline/src/build/rails/testJob.d.ts +1 -1
- package/dist/pipeline/src/build/rails/testJob.js +101 -71
- package/dist/pipeline/src/build/types.d.ts +324 -324
- package/dist/pipeline/src/build/types.js +10 -10
- package/dist/pipeline/src/catci/shippedCatci.d.ts +3 -3
- package/dist/pipeline/src/catci/shippedCatci.js +22 -21
- package/dist/pipeline/src/catenv/index.d.ts +3 -3
- package/dist/pipeline/src/catenv/index.js +8 -10
- package/dist/pipeline/src/config/configruedEnvs.d.ts +1 -1
- package/dist/pipeline/src/config/configruedEnvs.js +23 -18
- package/dist/pipeline/src/config/index.d.ts +1 -1
- package/dist/pipeline/src/config/index.js +16 -23
- package/dist/pipeline/src/config/readConfig.d.ts +4 -4
- package/dist/pipeline/src/config/readConfig.js +37 -42
- package/dist/pipeline/src/context/createAllComponentsContext.d.ts +4 -8
- package/dist/pipeline/src/context/createAllComponentsContext.js +16 -22
- package/dist/pipeline/src/context/createComponentContext.d.ts +6 -6
- package/dist/pipeline/src/context/createComponentContext.js +96 -87
- package/dist/pipeline/src/context/createWorkspaceContext.d.ts +8 -15
- package/dist/pipeline/src/context/createWorkspaceContext.js +28 -37
- package/dist/pipeline/src/context/getBuildInfoVariables.d.ts +2 -2
- package/dist/pipeline/src/context/getBuildInfoVariables.js +21 -22
- package/dist/pipeline/src/context/getEnvConfig.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvConfig.js +28 -29
- package/dist/pipeline/src/context/getEnvType.d.ts +2 -2
- package/dist/pipeline/src/context/getEnvType.js +9 -10
- package/dist/pipeline/src/context/getEnvironment.d.ts +1 -1
- package/dist/pipeline/src/context/getEnvironment.js +16 -20
- package/dist/pipeline/src/context/getEnvironmentContext.d.ts +1 -6
- package/dist/pipeline/src/context/getEnvironmentContext.js +28 -35
- package/dist/pipeline/src/context/getEnvironmentVariables.d.ts +19 -19
- package/dist/pipeline/src/context/getEnvironmentVariables.js +95 -102
- package/dist/pipeline/src/context/getLabels.d.ts +7 -7
- package/dist/pipeline/src/context/getLabels.js +25 -26
- package/dist/pipeline/src/context/getReviewSlug.d.ts +1 -1
- package/dist/pipeline/src/context/getReviewSlug.js +12 -14
- package/dist/pipeline/src/context/index.d.ts +1 -1
- package/dist/pipeline/src/context/index.js +16 -23
- package/dist/pipeline/src/context/transformJobOnlyVars.d.ts +3 -3
- package/dist/pipeline/src/context/transformJobOnlyVars.js +21 -21
- package/dist/pipeline/src/context/utils/envVars.d.ts +3 -3
- package/dist/pipeline/src/context/utils/envVars.js +20 -26
- package/dist/pipeline/src/customImages/hash.d.ts +7 -7
- package/dist/pipeline/src/customImages/hash.js +53 -59
- package/dist/pipeline/src/customImages/jobImagesPlan.d.ts +44 -46
- package/dist/pipeline/src/customImages/jobImagesPlan.js +131 -145
- package/dist/pipeline/src/customImages/jobImagesPlan.js.map +1 -1
- package/dist/pipeline/src/customImages/shippedImages.d.ts +1 -10
- package/dist/pipeline/src/customImages/shippedImages.js +28 -38
- package/dist/pipeline/src/customImages/shippedImages.js.map +1 -1
- package/dist/pipeline/src/defaults/index.d.ts +1 -1
- package/dist/pipeline/src/defaults/index.js +4 -6
- package/dist/pipeline/src/deploy/base/deploy.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/deploy.js +113 -92
- package/dist/pipeline/src/deploy/base/index.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/index.js +10 -6
- package/dist/pipeline/src/deploy/base/rollback.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/rollback.js +27 -31
- package/dist/pipeline/src/deploy/base/stop.d.ts +2 -2
- package/dist/pipeline/src/deploy/base/stop.js +26 -31
- package/dist/pipeline/src/deploy/base/variables.d.ts +4 -4
- package/dist/pipeline/src/deploy/base/variables.js +6 -8
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/artifactsRegistry.js +67 -55
- package/dist/pipeline/src/deploy/cloudRun/cleanup.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cleanup.js +17 -16
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/cloudRunRevisions.js +41 -44
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.d.ts +4 -4
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunJobs.js +63 -58
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunServices.js +73 -63
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/cloudRunWorkerPools.js +38 -38
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.d.ts +7 -7
- package/dist/pipeline/src/deploy/cloudRun/createJobs/common.js +37 -35
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/constants.js +3 -5
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/onDeploy.js +67 -57
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/execute/schedules.js +139 -130
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunDeployScripts.js +29 -10
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/getCloudRunStopScripts.js +23 -9
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.d.ts +3 -3
- package/dist/pipeline/src/deploy/cloudRun/createJobs/healthCheck.js +39 -36
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/index.js +37 -36
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/createJobs/volumes.js +13 -19
- package/dist/pipeline/src/deploy/cloudRun/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/index.js +100 -91
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.d.ts +5 -9
- package/dist/pipeline/src/deploy/cloudRun/utils/cloudRunExecutionUrl.js +7 -13
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/createArgsString.js +17 -13
- package/dist/pipeline/src/deploy/cloudRun/utils/database.d.ts +5 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/database.js +82 -49
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/gcloudServiceAccountLoginCommands.js +6 -6
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getJobOrServiceArgs.js +9 -7
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/getServiceName.js +5 -7
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/jobName.js +3 -5
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudRun/utils/removeFirstLinesFromCommandOutput.js +4 -6
- package/dist/pipeline/src/deploy/cloudSql/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/cloudSql/utils.js +9 -7
- package/dist/pipeline/src/deploy/custom/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/deployJob.js +34 -30
- package/dist/pipeline/src/deploy/custom/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/custom/index.js +7 -9
- package/dist/pipeline/src/deploy/dockerTag/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/deployJob.js +22 -18
- package/dist/pipeline/src/deploy/dockerTag/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/dockerTag/index.js +7 -9
- package/dist/pipeline/src/deploy/index.d.ts +13 -11
- package/dist/pipeline/src/deploy/index.js +20 -27
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.d.ts +3 -5
- package/dist/pipeline/src/deploy/kubernetes/additionalSecretKeys.js +19 -25
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.d.ts +7 -7
- package/dist/pipeline/src/deploy/kubernetes/cloudSql/index.js +35 -36
- package/dist/pipeline/src/deploy/kubernetes/deployJob.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/deployJob.js +61 -46
- package/dist/pipeline/src/deploy/kubernetes/index.d.ts +1 -1
- package/dist/pipeline/src/deploy/kubernetes/index.js +45 -54
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.d.ts +3 -3
- package/dist/pipeline/src/deploy/kubernetes/kubeEnv.js +34 -35
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.d.ts +84 -84
- package/dist/pipeline/src/deploy/kubernetes/kubeValues.js +63 -70
- package/dist/pipeline/src/deploy/kubernetes/mongodb.d.ts +28 -28
- package/dist/pipeline/src/deploy/kubernetes/mongodb.js +93 -88
- package/dist/pipeline/src/deploy/types/base.d.ts +27 -27
- package/dist/pipeline/src/deploy/types/base.js +2 -4
- package/dist/pipeline/src/deploy/types/custom.d.ts +25 -25
- package/dist/pipeline/src/deploy/types/custom.js +2 -4
- package/dist/pipeline/src/deploy/types/dockerTag.d.ts +10 -10
- package/dist/pipeline/src/deploy/types/dockerTag.js +2 -4
- package/dist/pipeline/src/deploy/types/executeBase.d.ts +15 -15
- package/dist/pipeline/src/deploy/types/executeBase.js +2 -4
- package/dist/pipeline/src/deploy/types/googleCloudRun.d.ts +439 -439
- package/dist/pipeline/src/deploy/types/googleCloudRun.js +14 -16
- package/dist/pipeline/src/deploy/types/index.d.ts +6 -6
- package/dist/pipeline/src/deploy/types/index.js +21 -27
- package/dist/pipeline/src/deploy/types/kubernetes.d.ts +255 -255
- package/dist/pipeline/src/deploy/types/kubernetes.js +2 -4
- package/dist/pipeline/src/deploy/utils.d.ts +1 -1
- package/dist/pipeline/src/deploy/utils.js +21 -23
- package/dist/pipeline/src/globalScriptFunctions/index.d.ts +6 -6
- package/dist/pipeline/src/globalScriptFunctions/index.js +19 -21
- package/dist/pipeline/src/index.d.ts +1 -1
- package/dist/pipeline/src/index.js +16 -23
- package/dist/pipeline/src/pipeline/agent/createAgentContext.d.ts +19 -19
- package/dist/pipeline/src/pipeline/agent/createAgentContext.js +37 -41
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/createAgentEventJob.js +27 -26
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/createAgentReviewJob.js +43 -35
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/createJobsForAgentContext.js +5 -7
- package/dist/pipeline/src/pipeline/agent/prompts.d.ts +2 -2
- package/dist/pipeline/src/pipeline/agent/prompts.js +14 -32
- package/dist/pipeline/src/pipeline/agent/shared.d.ts +4 -6
- package/dist/pipeline/src/pipeline/agent/shared.js +34 -36
- package/dist/pipeline/src/pipeline/agent/utils.d.ts +1 -1
- package/dist/pipeline/src/pipeline/agent/utils.js +9 -11
- package/dist/pipeline/src/pipeline/createAllJobs.d.ts +13 -17
- package/dist/pipeline/src/pipeline/createAllJobs.js +44 -56
- package/dist/pipeline/src/pipeline/createJobsForComponent.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForComponent.js +30 -27
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.d.ts +1 -1
- package/dist/pipeline/src/pipeline/createJobsForWorkspace.js +6 -8
- package/dist/pipeline/src/pipeline/generatePipelineFiles.d.ts +1 -1
- package/dist/pipeline/src/pipeline/generatePipelineFiles.js +35 -45
- package/dist/pipeline/src/pipeline/index.d.ts +1 -1
- package/dist/pipeline/src/pipeline/index.js +16 -23
- package/dist/pipeline/src/pipeline/packageManager.d.ts +1 -1
- package/dist/pipeline/src/pipeline/packageManager.js +59 -47
- package/dist/pipeline/src/pipeline/resolveRequirements.d.ts +1 -1
- package/dist/pipeline/src/pipeline/resolveRequirements.js +63 -66
- package/dist/pipeline/src/release/index.d.ts +11 -11
- package/dist/pipeline/src/release/index.js +12 -17
- package/dist/pipeline/src/rules/index.d.ts +1 -1
- package/dist/pipeline/src/rules/index.js +15 -15
- package/dist/pipeline/src/runner/index.d.ts +5 -10
- package/dist/pipeline/src/runner/index.js +9 -14
- package/dist/pipeline/src/runner/index.js.map +1 -1
- package/dist/pipeline/src/store/index.d.ts +5 -5
- package/dist/pipeline/src/store/index.js +31 -31
- package/dist/pipeline/src/types/agent.d.ts +15 -15
- package/dist/pipeline/src/types/agent.js +2 -4
- package/dist/pipeline/src/types/config.d.ts +244 -248
- package/dist/pipeline/src/types/config.js +28 -24
- package/dist/pipeline/src/types/context.d.ts +104 -104
- package/dist/pipeline/src/types/context.js +7 -9
- package/dist/pipeline/src/types/environmentContext.d.ts +25 -25
- package/dist/pipeline/src/types/environmentContext.js +2 -4
- package/dist/pipeline/src/types/github-types.d.ts +41 -41
- package/dist/pipeline/src/types/github-types.js +2 -4
- package/dist/pipeline/src/types/gitlab-ci-yml.d.ts +497 -497
- package/dist/pipeline/src/types/gitlab-ci-yml.js +2 -4
- package/dist/pipeline/src/types/gitlab-types.d.ts +15 -15
- package/dist/pipeline/src/types/gitlab-types.js +2 -4
- package/dist/pipeline/src/types/hooks.d.ts +26 -26
- package/dist/pipeline/src/types/hooks.js +2 -4
- package/dist/pipeline/src/types/index.d.ts +1 -1
- package/dist/pipeline/src/types/index.js +16 -23
- package/dist/pipeline/src/types/jobDefinition.d.ts +3 -3
- package/dist/pipeline/src/types/jobDefinition.js +2 -4
- package/dist/pipeline/src/types/jobs.d.ts +172 -171
- package/dist/pipeline/src/types/jobs.js +28 -15
- package/dist/pipeline/src/types/pipeline.d.ts +1 -1
- package/dist/pipeline/src/types/pipeline.js +2 -4
- package/dist/pipeline/src/types/release.d.ts +11 -11
- package/dist/pipeline/src/types/release.js +2 -4
- package/dist/pipeline/src/types/utils.d.ts +3 -1
- package/dist/pipeline/src/types/utils.js +2 -4
- package/dist/pipeline/src/utils/gitlab.d.ts +7 -7
- package/dist/pipeline/src/utils/gitlab.js +15 -12
- package/dist/pipeline/src/utils/index.d.ts +1 -1
- package/dist/pipeline/src/utils/index.js +9 -12
- package/dist/pipeline/src/utils/jsonParse.d.ts +1 -1
- package/dist/pipeline/src/utils/jsonParse.js +10 -11
- package/dist/pipeline/src/utils/measureTime.d.ts +4 -4
- package/dist/pipeline/src/utils/measureTime.js +34 -39
- package/dist/pipeline/src/utils/removeUndefined.d.ts +1 -1
- package/dist/pipeline/src/utils/removeUndefined.js +4 -6
- package/dist/pipeline/src/utils/writeFiles.d.ts +16 -16
- package/dist/pipeline/src/utils/writeFiles.js +67 -61
- package/dist/pipeline/src/variables/VariableValue.d.ts +1 -1
- package/dist/pipeline/src/variables/VariableValue.js +2 -4
- package/dist/pipeline/src/variables/VariableValueContainingReferences.d.ts +12 -12
- package/dist/pipeline/src/variables/VariableValueContainingReferences.js +51 -45
- package/dist/pipeline/src/variables/resolveAllReferences.d.ts +1 -1
- package/dist/pipeline/src/variables/resolveAllReferences.js +18 -17
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.d.ts +2 -2
- package/dist/pipeline/src/variables/resolveAllReferencesOnce.js +17 -14
- package/dist/pipeline/src/variables/resolveReferencesOnce.d.ts +3 -3
- package/dist/pipeline/src/variables/resolveReferencesOnce.js +16 -17
- package/dist/pipeline/src/verify/createVerifyJobs.d.ts +1 -1
- package/dist/pipeline/src/verify/createVerifyJobs.js +62 -55
- package/dist/pipeline/src/verify/index.d.ts +1 -1
- package/dist/pipeline/src/verify/index.js +16 -23
- package/dist/pipeline/src/verify/types.d.ts +11 -11
- package/dist/pipeline/src/verify/types.js +2 -4
- package/dist/skills/catladder-cli/references/commands.md +37 -2
- package/dist/skills/catladder-pipelines/SKILL.md +6 -6
- package/dist/skills/catladder-secrets/SKILL.md +42 -9
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +2 -7
- package/src/commands/index.ts +4 -0
- package/src/commands/project/commandConfigSecrets.ts +76 -15
- package/src/commands/project/secrets/__tests__/document.test.ts +122 -0
- package/src/commands/project/secrets/commandSecretsList.ts +75 -0
- package/src/commands/project/secrets/commandSecretsPull.ts +55 -0
- package/src/commands/project/secrets/commandSecretsPush.ts +100 -0
- package/src/commands/project/secrets/commandSecretsSet.ts +102 -0
- package/src/commands/project/secrets/document.ts +269 -0
- package/src/commands/project/secrets/parseKeysInput.ts +8 -0
- package/src/commands/project/secrets/scope.ts +151 -0
- package/src/utils/readStdin.ts +8 -0
- package/babel-inline.json +0 -11
- package/dist/bundles/runner-images/semantic-release-central.Dockerfile +0 -36
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.d.ts +0 -2
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js +0 -192
- package/dist/cli/src/apps/cli/commands/project/commandConfigSecrets.js.map +0 -1
- package/dist/pipeline/src/constants.d.ts +0 -2
- package/dist/pipeline/src/constants.js +0 -8
- package/dist/pipeline/src/constants.js.map +0 -1
- package/dist/runner-images/semantic-release-central.Dockerfile +0 -36
- package/src/apps/cli/commands/project/commandConfigSecrets.ts +0 -322
|
@@ -1,56 +1,58 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.writeBashYamlToFileScript = exports.yamlBashString = void 0;
|
|
7
4
|
const yaml_1 = require("yaml");
|
|
8
5
|
const BashExpression_1 = require("./BashExpression");
|
|
9
6
|
const VariableValueContainingReferences_1 = require("../variables/VariableValueContainingReferences");
|
|
10
7
|
const bashExpressionType = {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
8
|
+
tag: "",
|
|
9
|
+
resolve: (str) => {
|
|
10
|
+
// not really needed,but let's make typescript happy
|
|
11
|
+
return new BashExpression_1.BashExpression(str);
|
|
12
|
+
},
|
|
13
|
+
stringify(node, ctx) {
|
|
14
|
+
// we create a BLOCK_LITERAL
|
|
15
|
+
// but because bash will interpret the value, it may resolve to a multiline string
|
|
16
|
+
// so we need to indent every line using sed
|
|
17
|
+
return ("|-\n" +
|
|
18
|
+
ctx.indent +
|
|
19
|
+
indentNewlinesInBashExpression(node.value, ctx.indent));
|
|
20
|
+
},
|
|
21
|
+
identify: (v) => v instanceof BashExpression_1.BashExpression,
|
|
23
22
|
};
|
|
24
23
|
const indentNewlinesInBashExpression = (expression, indent) => {
|
|
25
|
-
|
|
24
|
+
return expression.transformWithCommand(`sed '1!s/^/${indent}/'`);
|
|
26
25
|
};
|
|
27
26
|
const variableContainingReferences = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
27
|
+
tag: "",
|
|
28
|
+
resolve: (str) => {
|
|
29
|
+
// not really needed,but let's make typescript happy
|
|
30
|
+
return new VariableValueContainingReferences_1.VariableValueContainingReferences(str);
|
|
31
|
+
},
|
|
32
|
+
stringify(node, ctx) {
|
|
33
|
+
const value = node.value;
|
|
34
|
+
const stringified = value.parts
|
|
35
|
+
.map((part) => part instanceof BashExpression_1.BashExpression
|
|
36
|
+
? indentNewlinesInBashExpression(part, ctx.indent)
|
|
37
|
+
: // indent every new line
|
|
38
|
+
part.toString().replace(/\n/g, `\n${ctx.indent}`))
|
|
39
|
+
.join("");
|
|
40
|
+
return "|-\n" + ctx.indent + stringified;
|
|
41
|
+
},
|
|
42
|
+
identify: (v) => v instanceof VariableValueContainingReferences_1.VariableValueContainingReferences,
|
|
41
43
|
};
|
|
42
44
|
/***
|
|
43
45
|
* creates a yaml string that can be used in bash scripts
|
|
44
46
|
* it handles BashExpressions correctly so that they can be evaluated in bash
|
|
45
47
|
*/
|
|
46
|
-
const yamlBashString = value => {
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
48
|
+
const yamlBashString = (value) => {
|
|
49
|
+
return (0, yaml_1.stringify)(value, {
|
|
50
|
+
defaultStringType: "BLOCK_LITERAL",
|
|
51
|
+
defaultKeyType: "PLAIN",
|
|
52
|
+
customTags: [bashExpressionType, variableContainingReferences],
|
|
53
|
+
aliasDuplicateObjects: false,
|
|
54
|
+
lineWidth: 0,
|
|
55
|
+
});
|
|
54
56
|
};
|
|
55
57
|
exports.yamlBashString = yamlBashString;
|
|
56
58
|
/**
|
|
@@ -58,9 +60,12 @@ exports.yamlBashString = yamlBashString;
|
|
|
58
60
|
* @param value the yaml value to write, it supports BashExpressions
|
|
59
61
|
*/
|
|
60
62
|
const writeBashYamlToFileScript = (value, filename) => {
|
|
61
|
-
|
|
63
|
+
return [
|
|
64
|
+
`cat > ${filename} <<EOF
|
|
62
65
|
${(0, exports.yamlBashString)(value)}
|
|
63
66
|
EOF
|
|
64
|
-
|
|
67
|
+
`,
|
|
68
|
+
];
|
|
65
69
|
};
|
|
66
|
-
exports.writeBashYamlToFileScript = writeBashYamlToFileScript;
|
|
70
|
+
exports.writeBashYamlToFileScript = writeBashYamlToFileScript;
|
|
71
|
+
//# sourceMappingURL=bashYaml.js.map
|
|
@@ -12,5 +12,5 @@ export type CiVariableName = "commitSha" | "jobToken" | "jobImage" | "registry"
|
|
|
12
12
|
* pipeline type of the given context.
|
|
13
13
|
*/
|
|
14
14
|
export declare const getCiVariable: (context: {
|
|
15
|
-
|
|
16
|
-
}, name: CiVariableName) => BashExpression;
|
|
15
|
+
pipelineType?: PipelineType;
|
|
16
|
+
}, name: CiVariableName) => BashExpression;
|
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.getCiVariable = void 0;
|
|
7
4
|
const ciVariables_1 = require("../backends/github/ciVariables");
|
|
8
5
|
const ciVariables_2 = require("../backends/gitlab/ciVariables");
|
|
9
6
|
const BashExpression_1 = require("./BashExpression");
|
|
10
7
|
const CI_VARIABLES_PER_PIPELINE_TYPE = {
|
|
11
|
-
|
|
12
|
-
|
|
8
|
+
gitlab: ciVariables_2.GITLAB_CI_VARIABLES,
|
|
9
|
+
github: ciVariables_1.GITHUB_CI_VARIABLES,
|
|
13
10
|
};
|
|
14
11
|
/**
|
|
15
12
|
* resolves a platform-neutral CI variable to a bash expression for the
|
|
16
13
|
* pipeline type of the given context.
|
|
17
14
|
*/
|
|
18
15
|
const getCiVariable = (context, name) => {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
16
|
+
var _a;
|
|
17
|
+
// contexts without an explicit pipeline type (e.g. local/catenv) keep
|
|
18
|
+
// resolving to gitlab, which matches the previously hardcoded values
|
|
19
|
+
const pipelineType = (_a = context.pipelineType) !== null && _a !== void 0 ? _a : "gitlab";
|
|
20
|
+
return new BashExpression_1.BashExpression(`$${CI_VARIABLES_PER_PIPELINE_TYPE[pipelineType][name]}`);
|
|
24
21
|
};
|
|
25
|
-
exports.getCiVariable = getCiVariable;
|
|
22
|
+
exports.getCiVariable = getCiVariable;
|
|
23
|
+
//# sourceMappingURL=ciVariables.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { UnspecifiedEnvVars } from "../types";
|
|
2
|
-
export declare const getInjectVarsScript: (vars?: UnspecifiedEnvVars) => string[];
|
|
2
|
+
export declare const getInjectVarsScript: (vars?: UnspecifiedEnvVars) => string[];
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.getInjectVarsScript = void 0;
|
|
7
4
|
const lodash_es_1 = require("lodash-es");
|
|
8
5
|
const bashEscape_1 = require("./bashEscape");
|
|
9
|
-
const getInjectVarsScript = vars => {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
6
|
+
const getInjectVarsScript = (vars) => {
|
|
7
|
+
if (!vars)
|
|
8
|
+
return [];
|
|
9
|
+
// filter out null and undefined values
|
|
10
|
+
return Object.entries(vars)
|
|
11
|
+
.filter(([, value]) => !(0, lodash_es_1.isNil)(value))
|
|
12
|
+
.map(([key, value]) => `export ${key}="${value
|
|
13
|
+
? (0, bashEscape_1.bashEscape)(value, {
|
|
14
|
+
quotes: "double",
|
|
15
|
+
})
|
|
16
|
+
: ""}"`);
|
|
15
17
|
};
|
|
16
|
-
exports.getInjectVarsScript = getInjectVarsScript;
|
|
18
|
+
exports.getInjectVarsScript = getInjectVarsScript;
|
|
19
|
+
//# sourceMappingURL=getInjectVarsScript.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./bashEscape";
|
|
2
|
-
export * from "./BashExpression";
|
|
2
|
+
export * from "./BashExpression";
|
|
@@ -1,26 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
} : function (o, m, k, k2) {
|
|
16
|
-
if (k2 === undefined) k2 = k;
|
|
17
|
-
o[k2] = m[k];
|
|
18
|
-
});
|
|
19
|
-
var __exportStar = this && this.__exportStar || function (m, exports) {
|
|
20
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
21
15
|
};
|
|
22
|
-
Object.defineProperty(exports, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
});
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
17
|
__exportStar(require("./bashEscape"), exports);
|
|
26
|
-
__exportStar(require("./BashExpression"), exports);
|
|
18
|
+
__exportStar(require("./BashExpression"), exports);
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { type Context } from "../../types";
|
|
2
2
|
import type { CatladderJob } from "../../types/jobs";
|
|
3
|
-
export declare const createBuildJobArtifacts: (context: Context) => Promise<CatladderJob["artifacts"]>;
|
|
3
|
+
export declare const createBuildJobArtifacts: (context: Context) => Promise<CatladderJob["artifacts"]>;
|
|
@@ -1,57 +1,65 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.createBuildJobArtifacts = void 0;
|
|
7
4
|
const path_1 = require("path");
|
|
8
5
|
const types_1 = require("../../types");
|
|
9
6
|
const lodash_es_1 = require("lodash-es");
|
|
10
7
|
const writeDotEnv_1 = require("../base/writeDotEnv");
|
|
11
|
-
const uniqueAndAlphabeticalSort = arr => {
|
|
12
|
-
|
|
8
|
+
const uniqueAndAlphabeticalSort = (arr) => {
|
|
9
|
+
return (0, lodash_es_1.uniq)(arr).sort((a, b) => a.localeCompare(b));
|
|
13
10
|
};
|
|
14
|
-
const createBuildJobArtifacts = async context => {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
11
|
+
const createBuildJobArtifacts = async (context) => {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
const paths = context.type === "workspace"
|
|
14
|
+
? (await Promise.all(context.components.map((c) => getArtifactsPathForComponent(c)))).flat()
|
|
15
|
+
: await getArtifactsPathForComponent(context, ["__build_info.json"]);
|
|
16
|
+
const exclude = context.type === "workspace"
|
|
17
|
+
? (await Promise.all(context.components.map((c) => getAllArtifactExcludePathsForComponent(c)))).flat()
|
|
18
|
+
: await getAllArtifactExcludePathsForComponent(context);
|
|
19
|
+
return {
|
|
20
|
+
paths: uniqueAndAlphabeticalSort(paths),
|
|
21
|
+
...(exclude.length > 0
|
|
22
|
+
? { exclude: uniqueAndAlphabeticalSort(exclude) }
|
|
23
|
+
: {}),
|
|
24
|
+
expire_in: "1 day",
|
|
25
|
+
when: "always",
|
|
26
|
+
reports:
|
|
27
|
+
// TODO: support for junit reports in other builds
|
|
28
|
+
context.type === "component" && (0, types_1.componentContextIsStandaloneBuild)(context)
|
|
29
|
+
? {
|
|
30
|
+
junit: (_b = (_a = context.build.config.artifactsReports) === null || _a === void 0 ? void 0 : _a.junit) === null || _b === void 0 ? void 0 : _b.map((p) => (0, path_1.join)(context.build.dir, p)),
|
|
31
|
+
}
|
|
32
|
+
: {},
|
|
33
|
+
};
|
|
31
34
|
};
|
|
32
35
|
exports.createBuildJobArtifacts = createBuildJobArtifacts;
|
|
33
36
|
const _getArtifactPathsForComponent = async (c, configKey, additionalPaths) => {
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
var _a, _b;
|
|
38
|
+
// in theory, we only need "direct",
|
|
39
|
+
// but in some cases project may have packages in the workspace that create build artifacts, which aren't components
|
|
40
|
+
// this highly depends on the build tool. To be safe, we get all
|
|
41
|
+
const componentDirs = await c.build.getComponentDirs("all");
|
|
42
|
+
return (_b = [
|
|
43
|
+
...(c.build.type !== "disabled" ? ((_a = c.build.config[configKey]) !== null && _a !== void 0 ? _a : []) : []),
|
|
44
|
+
...(additionalPaths !== null && additionalPaths !== void 0 ? additionalPaths : []),
|
|
45
|
+
]) === null || _b === void 0 ? void 0 : _b.flatMap((artifact) => componentDirs.flatMap((cDir) => (0, path_1.join)(cDir, artifact)));
|
|
40
46
|
};
|
|
41
47
|
const getArtifactsPathForComponent = (c, additionalPaths) => {
|
|
42
|
-
|
|
48
|
+
return _getArtifactPathsForComponent(c, "artifactsPaths", additionalPaths);
|
|
43
49
|
};
|
|
44
|
-
const getAllArtifactExcludePathsForComponent = async c => {
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
50
|
+
const getAllArtifactExcludePathsForComponent = async (c) => {
|
|
51
|
+
return [
|
|
52
|
+
...getDotEnvPathsForComponent(c), // always exclude .env files
|
|
53
|
+
...(await getArtifactExcludePathsForComponent(c)),
|
|
54
|
+
];
|
|
48
55
|
};
|
|
49
56
|
const getArtifactExcludePathsForComponent = (c, additionalPaths) => {
|
|
50
|
-
|
|
57
|
+
return _getArtifactPathsForComponent(c, "artifactsExcludePaths", additionalPaths);
|
|
51
58
|
};
|
|
52
|
-
const getDotEnvPathsForComponent = c => {
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
};
|
|
59
|
+
const getDotEnvPathsForComponent = (c) => {
|
|
60
|
+
if ((0, writeDotEnv_1.componentContextNeedsBuildTimeDotEnv)(c)) {
|
|
61
|
+
return [(0, path_1.join)(c.build.dir, ".env")];
|
|
62
|
+
}
|
|
63
|
+
return [];
|
|
64
|
+
};
|
|
65
|
+
//# sourceMappingURL=createBuildJobArtifact.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const APP_BUILD_JOB_NAME = "\uD83D\uDD28 app";
|
|
2
2
|
export declare const RUNNER_BUILD_RESOURCE_VARIABLES: {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
3
|
+
KUBERNETES_CPU_REQUEST: string;
|
|
4
|
+
KUBERNETES_MEMORY_REQUEST: string;
|
|
5
|
+
KUBERNETES_MEMORY_LIMIT: string;
|
|
6
|
+
};
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.RUNNER_BUILD_RESOURCE_VARIABLES = exports.APP_BUILD_JOB_NAME = void 0;
|
|
7
4
|
exports.APP_BUILD_JOB_NAME = "🔨 app";
|
|
8
5
|
exports.RUNNER_BUILD_RESOURCE_VARIABLES = {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
};
|
|
6
|
+
KUBERNETES_CPU_REQUEST: "0.45",
|
|
7
|
+
KUBERNETES_MEMORY_REQUEST: "1Gi",
|
|
8
|
+
KUBERNETES_MEMORY_LIMIT: "4Gi",
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=constants.js.map
|
|
@@ -2,6 +2,6 @@ import type { BuildContextStandalone, ComponentContext, WorkspaceContext } from
|
|
|
2
2
|
import type { AppBuildJobDefinition } from "../../types/jobDefinition";
|
|
3
3
|
import { CatladderJob } from "../../types/jobs";
|
|
4
4
|
export declare class AppBuildJob extends CatladderJob {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
}
|
|
5
|
+
private constructor();
|
|
6
|
+
static create(context: ComponentContext<BuildContextStandalone> | WorkspaceContext, definition: AppBuildJobDefinition): Promise<AppBuildJob>;
|
|
7
|
+
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.AppBuildJob = void 0;
|
|
7
4
|
const lodash_es_1 = require("lodash-es");
|
|
8
5
|
const __1 = require("../..");
|
|
@@ -15,47 +12,56 @@ const constants_1 = require("./constants");
|
|
|
15
12
|
const writeBuildInfo_1 = require("./writeBuildInfo");
|
|
16
13
|
const writeDotEnv_1 = require("./writeDotEnv");
|
|
17
14
|
class AppBuildJob extends jobs_1.CatladderJob {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
15
|
+
constructor(context, { script, variables, runnerVariables, cache, ...def }, artifacts) {
|
|
16
|
+
var _a;
|
|
17
|
+
super({
|
|
18
|
+
name: constants_1.APP_BUILD_JOB_NAME,
|
|
19
|
+
envMode: "jobPerEnv",
|
|
20
|
+
stage: "build",
|
|
21
|
+
provides: ["buildArtifacts"],
|
|
22
|
+
image: (0, __1.getRunnerImage)("jobs-default"),
|
|
23
|
+
needs: [],
|
|
24
|
+
caches: cache,
|
|
25
|
+
variables: {
|
|
26
|
+
...(variables !== null && variables !== void 0 ? variables : {}),
|
|
27
|
+
...(context.type === "component"
|
|
28
|
+
? {
|
|
29
|
+
...context.environment.envVars,
|
|
30
|
+
...context.environment.jobOnlyVars.build.envVars,
|
|
31
|
+
}
|
|
32
|
+
: {}),
|
|
33
|
+
},
|
|
34
|
+
runnerVariables: {
|
|
35
|
+
...constants_1.RUNNER_BUILD_RESOURCE_VARIABLES,
|
|
36
|
+
...(runnerVariables !== null && runnerVariables !== void 0 ? runnerVariables : {}),
|
|
37
|
+
...((_a = context.build.config.runnerVariables) !== null && _a !== void 0 ? _a : {}),
|
|
38
|
+
},
|
|
39
|
+
script: [
|
|
40
|
+
...(context.type === "component"
|
|
41
|
+
? (0, writeDotEnv_1.componentContextNeedsBuildTimeDotEnv)(context)
|
|
42
|
+
? (0, writeDotEnv_1.writeDotEnv)(context)
|
|
43
|
+
: []
|
|
44
|
+
: context.type === "workspace"
|
|
45
|
+
? context.components
|
|
46
|
+
.filter((c) => (0, writeDotEnv_1.componentContextNeedsBuildTimeDotEnv)(c))
|
|
47
|
+
.flatMap((c) => (0, writeDotEnv_1.writeDotEnv)(c))
|
|
48
|
+
: []),
|
|
49
|
+
...(context.type === "component" ? (0, writeBuildInfo_1.writeBuildInfo)(context) : []),
|
|
50
|
+
...(0, yarn_1.ensureNodeVersion)(context), // in pure node repos, we might want to have the nvmrc file in top-level
|
|
51
|
+
`cd ${context.build.dir}`,
|
|
52
|
+
...(0, utils_1.ensureArray)(script),
|
|
53
|
+
],
|
|
54
|
+
artifacts,
|
|
55
|
+
// definition overrides the defaults above; undefined values are
|
|
56
|
+
// skipped and objects cloned to keep the previous lodash `merge`
|
|
57
|
+
// semantics (cloning avoids shared references, which would show up
|
|
58
|
+
// as anchors/aliases in the generated yaml)
|
|
59
|
+
...(0, lodash_es_1.cloneDeep)((0, removeUndefined_1.removeUndefined)(def)),
|
|
60
|
+
});
|
|
61
|
+
}
|
|
62
|
+
static async create(context, definition) {
|
|
63
|
+
return new AppBuildJob(context, definition, await (0, createBuildJobArtifact_1.createBuildJobArtifacts)(context));
|
|
64
|
+
}
|
|
60
65
|
}
|
|
61
|
-
exports.AppBuildJob = AppBuildJob;
|
|
66
|
+
exports.AppBuildJob = AppBuildJob;
|
|
67
|
+
//# sourceMappingURL=createAppBuildJob.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { BuildConfigArtifactsReports } from "../types";
|
|
2
2
|
import type { Artifacts } from "../../types";
|
|
3
3
|
import type { OptionalArtifacts } from "../custom/testJob";
|
|
4
|
-
export declare const createArtifactsConfig: (rootPath: string, artifactsReports?: BuildConfigArtifactsReports, artifacts?: Artifacts) => OptionalArtifacts;
|
|
4
|
+
export declare const createArtifactsConfig: (rootPath: string, artifactsReports?: BuildConfigArtifactsReports, artifacts?: Artifacts) => OptionalArtifacts;
|
|
@@ -1,21 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.createArtifactsConfig = void 0;
|
|
7
4
|
const path_1 = require("path");
|
|
8
5
|
const createArtifactsConfig = (rootPath, artifactsReports, artifacts) => {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
6
|
+
var _a, _b, _c, _d;
|
|
7
|
+
return artifactsReports || artifacts
|
|
8
|
+
? {
|
|
9
|
+
artifacts: {
|
|
10
|
+
paths: [],
|
|
11
|
+
...artifacts,
|
|
12
|
+
reports: {
|
|
13
|
+
...artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports,
|
|
14
|
+
junit: [
|
|
15
|
+
artifactsReports === null || artifactsReports === void 0 ? void 0 : artifactsReports.junit,
|
|
16
|
+
Array.isArray((_a = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _a === void 0 ? void 0 : _a.junit) &&
|
|
17
|
+
((_b = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _b === void 0 ? void 0 : _b.junit),
|
|
18
|
+
typeof ((_c = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _c === void 0 ? void 0 : _c.junit) === "string" && [
|
|
19
|
+
(_d = artifacts === null || artifacts === void 0 ? void 0 : artifacts.reports) === null || _d === void 0 ? void 0 : _d.junit,
|
|
20
|
+
],
|
|
21
|
+
]
|
|
22
|
+
.filter(Array.isArray)
|
|
23
|
+
.reduce((acc, curr) => [...acc, ...curr.map((p) => (0, path_1.join)(rootPath, p))], []),
|
|
24
|
+
},
|
|
25
|
+
},
|
|
26
|
+
}
|
|
27
|
+
: undefined;
|
|
20
28
|
};
|
|
21
|
-
exports.createArtifactsConfig = createArtifactsConfig;
|
|
29
|
+
exports.createArtifactsConfig = createArtifactsConfig;
|
|
30
|
+
//# sourceMappingURL=createArtifactsConfig.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { BuildConfigStandalone, WorkspaceBuildConfig } from "..";
|
|
2
2
|
import type { AppBuildJobDefinition, Context } from "../../types";
|
|
3
3
|
export declare const createBuildJobDefinition: (context: Context, buildConfig: BuildConfigStandalone | WorkspaceBuildConfig, customize?: Pick<AppBuildJobDefinition, "cache"> & {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}) => AppBuildJobDefinition | undefined;
|
|
4
|
+
prescript?: string[];
|
|
5
|
+
postscript?: string[];
|
|
6
|
+
}) => AppBuildJobDefinition | undefined;
|
|
@@ -1,24 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.createBuildJobDefinition = void 0;
|
|
7
4
|
const runner_1 = require("../../runner");
|
|
8
5
|
const utils_1 = require("../../utils");
|
|
9
6
|
const getAllCacheConfigsFromConfig_1 = require("../cache/getAllCacheConfigsFromConfig");
|
|
10
7
|
const constants_1 = require("../node/constants");
|
|
11
8
|
const createBuildJobDefinition = (context, buildConfig, customize = {}) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
9
|
+
var _a, _b, _c, _d;
|
|
10
|
+
if (buildConfig.buildCommand === null || buildConfig.buildCommand === false)
|
|
11
|
+
return undefined;
|
|
12
|
+
const defaultImage = (0, runner_1.getRunnerImage)("jobs-default");
|
|
13
|
+
return {
|
|
14
|
+
image: (_a = buildConfig.jobImage) !== null && _a !== void 0 ? _a : defaultImage,
|
|
15
|
+
runnerVariables: constants_1.NODE_RUNNER_BUILD_VARIABLES,
|
|
16
|
+
cache: [
|
|
17
|
+
...((_b = customize.cache) !== null && _b !== void 0 ? _b : []),
|
|
18
|
+
...(0, getAllCacheConfigsFromConfig_1.getAllCacheConfigsFromConfig)(context, buildConfig),
|
|
19
|
+
],
|
|
20
|
+
services: "jobServices" in buildConfig ? buildConfig.jobServices : undefined,
|
|
21
|
+
script: [
|
|
22
|
+
...((_c = customize.prescript) !== null && _c !== void 0 ? _c : []),
|
|
23
|
+
...(0, utils_1.ensureArray)(buildConfig.buildCommand),
|
|
24
|
+
...((_d = customize.postscript) !== null && _d !== void 0 ? _d : []),
|
|
25
|
+
],
|
|
26
|
+
jobTags: buildConfig.jobTags,
|
|
27
|
+
};
|
|
23
28
|
};
|
|
24
|
-
exports.createBuildJobDefinition = createBuildJobDefinition;
|
|
29
|
+
exports.createBuildJobDefinition = createBuildJobDefinition;
|
|
30
|
+
//# sourceMappingURL=createBuildJobDefinition.js.map
|