@jin7942/ray
Version:
Lightweight CI/CD deployment tool powered by Docker and Git
21 lines (20 loc) • 782 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
const child_process_1 = require("child_process");
const util_1 = require("util");
const execAsync = (0, util_1.promisify)(child_process_1.exec);
/**
* Runs the project's build command inside the cloned workspace.
*
* @param ctx - Pipeline execution context
*/
// export async function buildProject(ctx: StepContext): Promise<void> {
// const { buildCommand, workspace } = ctx;
// logger.info(`Running build command: ${buildCommand}`);
// try {
// await execAsync(buildCommand, { cwd: workspace });
// logger.info('Build completed successfully.');
// } catch (e) {
// throw new Error(`Build failed: ${e instanceof Error ? e.message : String(e)}`);
// }
// }