From cdafc30279fbc72a8ba8bebca63ee0ab15f32bae Mon Sep 17 00:00:00 2001 From: Vardan Bansal Date: Thu, 14 Sep 2023 15:06:22 -0700 Subject: [PATCH] adding image field to run step --- web/src/components/PluginsPanel/PluginsPanel.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/web/src/components/PluginsPanel/PluginsPanel.tsx b/web/src/components/PluginsPanel/PluginsPanel.tsx index ed18005d3..e1d02d720 100644 --- a/web/src/components/PluginsPanel/PluginsPanel.tsx +++ b/web/src/components/PluginsPanel/PluginsPanel.tsx @@ -60,6 +60,9 @@ const RunStep: Plugin = { spec: { name: 'Run', inputs: { + image: { + type: 'string' + }, script: { type: 'string', options: { isExtended: true } @@ -235,7 +238,10 @@ export const PluginsPanel = ({ onPluginAddUpdate }: PluginsPanelInterface): JSX. case PluginCategory.Drone: return set(pluginStep, 'spec.envs', constructedPayload) case PluginCategory.Harness: - return { type: 'script', spec: { run: get(constructedPayload, 'script', '') } } + return { + type: 'script', + spec: { image: get(constructedPayload, 'image', ''), run: get(constructedPayload, 'script', '') } + } default: return {} }