This commit is contained in:
Manabu Mccloskey 2023-03-31 17:28:06 -07:00
parent 0860bc6a7e
commit 11cec3c5b0
2 changed files with 32 additions and 1 deletions

View file

@ -37,6 +37,7 @@
"@backstage/plugin-search-backend-node": "^1.1.3",
"@backstage/plugin-techdocs-backend": "^1.5.3",
"@kubernetes/client-node": "^0.18.1",
"@roadiehq/scaffolder-backend-module-utils": "^1.8.4",
"app": "link:../app",
"better-sqlite3": "^8.0.0",
"dockerode": "^3.3.1",

View file

@ -4,6 +4,20 @@ import { Router } from 'express';
import type { PluginEnvironment } from '../types';
import { ScmIntegrations } from '@backstage/integration';
import {createInvokeArgoAction} from './workflow-argo'
import {
createZipAction,
createSleepAction,
createWriteFileAction,
createAppendFileAction,
createMergeJSONAction,
createMergeAction,
createParseFileAction,
createSerializeYamlAction,
createSerializeJsonAction,
createJSONataAction,
createYamlJSONataTransformAction,
createJsonJSONataTransformAction,
} from '@roadiehq/scaffolder-backend-module-utils';
export default async function createPlugin(
env: PluginEnvironment,
@ -19,7 +33,23 @@ export default async function createPlugin(
config: env.config,
reader: env.reader,
});
const actions = [...builtInActions, createInvokeArgoAction(env.config, env.logger)];
const scaffolderBackendModuleUtils = [
createZipAction(),
createSleepAction(),
createWriteFileAction(),
createAppendFileAction(),
createMergeJSONAction({}),
createMergeAction(),
createParseFileAction(),
createSerializeYamlAction(),
createSerializeJsonAction(),
createJSONataAction(),
createYamlJSONataTransformAction(),
createJsonJSONataTransformAction()
]
const actions = [...builtInActions, ...scaffolderBackendModuleUtils, createInvokeArgoAction(env.config, env.logger)];
return await createRouter({
actions: actions,