Skip to content

Commit

Permalink
DEVOP-32: concatenate timeout last attemp second try
Browse files Browse the repository at this point in the history
  • Loading branch information
michperalbo-fsl committed May 17, 2024
1 parent 8212d3f commit ae668c0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
5 changes: 2 additions & 3 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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`,
Expand All @@ -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, {
Expand Down
5 changes: 2 additions & 3 deletions src/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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',
Expand All @@ -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, {
Expand Down

0 comments on commit ae668c0

Please sign in to comment.