Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
version: newVersion,
image_version: imageConf.version,
},
renderedRCFilePath
);
if (opts.createRc && !rcname) {
yield exec(`kubectl create -f ${renderedRCFilePath}`);
} else {
yield exec(`kubectl rolling-update ${rcname} -f ${renderedRCFilePath}`);
}
const conf = yield readJson('config/deployment.json');
yield writeJson(
'config/deployment.json',
u(
{
[appLabel]: {
version: newVersion
}
},
conf
)
);
});
const imageTag = `${targetImageName}:v${newVersion}`;
let dockerfilePath;
if (isTemplate) {
dockerfilePath = yield renderDockerfile(targetImageConf);
} else {
dockerfilePath = dockerfile;
}
yield buildImage(dockerfilePath, imageTag, opts);
const conf = yield readJson('config/builds.json');
yield writeJson(
'config/builds.json',
u(
{
[targetImageName]: {
version: newVersion
}
},
conf
)
);
const childImageNames = yield findChildImages(targetImageName);
for (const childImageName of childImageNames) {
yield build(childImageName, opts);
}
});