From ae668c0abf2dcc87fb5c3256c4f15c10e2958d0b Mon Sep 17 00:00:00 2001 From: Michelle Peralbo Date: Fri, 17 May 2024 18:15:16 -0500 Subject: [PATCH] DEVOP-32: concatenate timeout last attemp second try --- dist/index.js | 5 ++--- src/run.ts | 5 ++--- 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index d90b3d9..8162764 100644 --- a/dist/index.js +++ b/dist/index.js @@ -24310,7 +24310,7 @@ function run(exec, context, core, env) { const repository = context.repo.repo; const serviceName = getServiceName(repository); const gitsha = context.sha.slice(0, 7); - const timeout = core.getInput('timeout') || '600' + 's'; + const timeout = core.getInput('timeout') || '600'; const pullSecret = core.getInput('imagePullSecret') || 'peachjar-eks-github-pull-secret'; const helmChartPath = core.getInput('helmChartPath') || `./${serviceName}`; const helmReleaseName = core.getInput('helmReleaseName') || serviceName; @@ -24348,7 +24348,6 @@ function run(exec, context, core, env) { }); core.info('Migration to helm3 succeeded'); core.info('Starting deploy...'); - core.info(timeout); yield exec('helm', [ '--kubeconfig', `../kilauea/kubefiles/${environment}/kubectl_configs/${environment}-kube-config-beta-admins.yml`, @@ -24358,7 +24357,7 @@ function run(exec, context, core, env) { '--set-string', `image.registryAndName=${dockerImage}`, '--set-string', `image.pullSecret=${pullSecret}`, ...extraVars, - '--wait', '--timeout', `${timeout}` + '--wait', '--timeout', `${timeout}s` ], { cwd: 'peachjar-aloha/', env: Object.assign({}, env, { diff --git a/src/run.ts b/src/run.ts index dc8cdfd..4c53e29 100644 --- a/src/run.ts +++ b/src/run.ts @@ -46,7 +46,7 @@ export default async function run( const serviceName = getServiceName(repository) const gitsha = context.sha.slice(0, 7) - const timeout = core.getInput('timeout') || '600'+'s' + const timeout = core.getInput('timeout') || '600' const pullSecret = core.getInput('imagePullSecret') || 'peachjar-eks-github-pull-secret' const helmChartPath = core.getInput('helmChartPath') || `./${serviceName}` const helmReleaseName = core.getInput('helmReleaseName') || serviceName @@ -93,7 +93,6 @@ export default async function run( core.info('Migration to helm3 succeeded') core.info('Starting deploy...') - core.info(timeout) await exec('helm', [ '--kubeconfig', @@ -104,7 +103,7 @@ export default async function run( '--set-string', `image.registryAndName=${dockerImage}`, '--set-string', `image.pullSecret=${pullSecret}`, ...extraVars, - '--wait', '--timeout', `${timeout}` + '--wait', '--timeout', `${timeout}s` ], { cwd: 'peachjar-aloha/', env: Object.assign({}, env, {