UNPKG

@catladder/cli

Version:

Panter cli tool for cloud CI/CD and DevOps

36 lines (35 loc) 974 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createStopJob = exports.STOP_JOB_NAME = void 0; const variables_1 = require("./variables"); exports.STOP_JOB_NAME = "🛑 Stop ⚠️"; const createStopJob = (context, jobDefinition) => { return { name: exports.STOP_JOB_NAME, image: jobDefinition.image, envMode: "stagePerEnv", // makes it easier to run manual tasks er env needs: [], // can be executed even if the deploy job failed allow_failure: true, when: "manual", // stop is always manual variables: { ...context.environment.jobOnlyVars.deploy.envVars, ...jobDefinition.variables }, runnerVariables: { ...variables_1.DEPLOY_RUNNER_VARIABLES, GIT_STRATEGY: "none", ...jobDefinition.runnerVariables }, stage: "stop", environment: { action: "stop" }, script: jobDefinition.script }; }; exports.createStopJob = createStopJob;