fix(scaffolder): get correct resultDir, template
This commit is contained in:
@@ -11,3 +11,16 @@ spec:
|
||||
processor: cookiecutter
|
||||
type: service
|
||||
path: '.'
|
||||
schema:
|
||||
required:
|
||||
- component_id
|
||||
- description
|
||||
properties:
|
||||
component_id:
|
||||
title: Name
|
||||
type: string
|
||||
description: Unique name of the component
|
||||
description:
|
||||
title: Description
|
||||
type: string
|
||||
description: Description of the component
|
||||
|
||||
@@ -106,7 +106,7 @@ export async function createRouter(
|
||||
{
|
||||
name: 'Run the templater',
|
||||
handler: async (ctx: StageContext<{ skeletonDir: string }>) => {
|
||||
const resultDir = await templater.run({
|
||||
const { resultDir } = await templater.run({
|
||||
directory: ctx.skeletonDir,
|
||||
dockerClient,
|
||||
logStream: ctx.logStream,
|
||||
|
||||
@@ -52,7 +52,8 @@ export class ScaffolderApi {
|
||||
headers: {
|
||||
'Content-Type': 'application/json',
|
||||
},
|
||||
body: JSON.stringify({ template, values }),
|
||||
// TODO(shmidt-i): when repo picker is implemented, take isOrg from it
|
||||
body: JSON.stringify({ template, ...values, isOrg: true }),
|
||||
});
|
||||
|
||||
if (response.status !== 201) {
|
||||
|
||||
Reference in New Issue
Block a user