adding image field to run step

This commit is contained in:
Vardan Bansal 2023-09-14 15:06:22 -07:00
parent 6c3d67115b
commit cdafc30279

View File

@ -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 {}
}