mirror of
https://github.com/harness/drone.git
synced 2025-05-13 07:29:54 +08:00
adding image field to run step
This commit is contained in:
parent
6c3d67115b
commit
cdafc30279
@ -60,6 +60,9 @@ const RunStep: Plugin = {
|
|||||||
spec: {
|
spec: {
|
||||||
name: 'Run',
|
name: 'Run',
|
||||||
inputs: {
|
inputs: {
|
||||||
|
image: {
|
||||||
|
type: 'string'
|
||||||
|
},
|
||||||
script: {
|
script: {
|
||||||
type: 'string',
|
type: 'string',
|
||||||
options: { isExtended: true }
|
options: { isExtended: true }
|
||||||
@ -235,7 +238,10 @@ export const PluginsPanel = ({ onPluginAddUpdate }: PluginsPanelInterface): JSX.
|
|||||||
case PluginCategory.Drone:
|
case PluginCategory.Drone:
|
||||||
return set(pluginStep, 'spec.envs', constructedPayload)
|
return set(pluginStep, 'spec.envs', constructedPayload)
|
||||||
case PluginCategory.Harness:
|
case PluginCategory.Harness:
|
||||||
return { type: 'script', spec: { run: get(constructedPayload, 'script', '') } }
|
return {
|
||||||
|
type: 'script',
|
||||||
|
spec: { image: get(constructedPayload, 'image', ''), run: get(constructedPayload, 'script', '') }
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user