forked from Ivasoft/github-actions
Fix passing multiple values through --container-options
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -115,10 +115,11 @@ func (p Plugin) Exec() error {
|
|||||||
if selinux.GetEnabled() {
|
if selinux.GetEnabled() {
|
||||||
bindModifiers = ":z"
|
bindModifiers = ":z"
|
||||||
}
|
}
|
||||||
cmdArgs = append(cmdArgs, "--container-options", fmt.Sprintf("--volume=%s:%s%s", hostWorkDirPath, guestWorkDirPath, bindModifiers))
|
opt := fmt.Sprintf("--volume=%s:%s%s", hostWorkDirPath, guestWorkDirPath, bindModifiers)
|
||||||
if p.Action.Kvm {
|
if p.Action.Kvm {
|
||||||
cmdArgs = append(cmdArgs, "--volume=/dev/kvm:/dev/kvm")
|
opt = opt + " --volume=/dev/kvm:/dev/kvm"
|
||||||
}
|
}
|
||||||
|
cmdArgs = append(cmdArgs, "--container-options", opt)
|
||||||
}
|
}
|
||||||
|
|
||||||
cmd := exec.Command("act", cmdArgs...)
|
cmd := exec.Command("act", cmdArgs...)
|
||||||
|
|||||||
Reference in New Issue
Block a user