mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-16 02:19:05 +00:00
Add linter revive (#554)
* Add linter revive * Add underscore to variable name to prevent shadowing * Remove unnecessary leading underscore * Revert changes to vendor file * export ConfigFetcher as interface * no 'yoda conditions' * rename envsubst Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
@@ -16,13 +16,13 @@ func (c *Compiler) createProcess(name string, container *yaml.Container, section
|
||||
detached bool
|
||||
workingdir string
|
||||
|
||||
workspace = fmt.Sprintf("%s_default:%s", c.prefix, c.base)
|
||||
privileged = container.Privileged
|
||||
entrypoint = container.Entrypoint
|
||||
command = container.Command
|
||||
image = expandImage(container.Image)
|
||||
network_mode = container.NetworkMode
|
||||
ipc_mode = container.IpcMode
|
||||
workspace = fmt.Sprintf("%s_default:%s", c.prefix, c.base)
|
||||
privileged = container.Privileged
|
||||
entrypoint = container.Entrypoint
|
||||
command = container.Command
|
||||
image = expandImage(container.Image)
|
||||
networkMode = container.NetworkMode
|
||||
ipcMode = container.IpcMode
|
||||
// network = container.Network
|
||||
)
|
||||
|
||||
@@ -176,7 +176,7 @@ func (c *Compiler) createProcess(name string, container *yaml.Container, section
|
||||
OnFailure: (len(container.Constraints.Status.Include)+
|
||||
len(container.Constraints.Status.Exclude) != 0) &&
|
||||
container.Constraints.Status.Match("failure"),
|
||||
NetworkMode: network_mode,
|
||||
IpcMode: ipc_mode,
|
||||
NetworkMode: networkMode,
|
||||
IpcMode: ipcMode,
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user