forked from Ivasoft/github-actions
Patch act to not bind the workdir as we do it using --container-options
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
18
patches/001-workdir-bind.patch
Normal file
18
patches/001-workdir-bind.patch
Normal file
@@ -0,0 +1,18 @@
|
||||
--- "a/pkg/runner/run_context.go"
|
||||
+++ "b/pkg/runner/run_context.go"
|
||||
@@ -142,14 +142,7 @@ func (rc *RunContext) GetBindsAndMounts() ([]string, map[string]string) {
|
||||
}
|
||||
|
||||
if rc.Config.BindWorkdir {
|
||||
- bindModifiers := ""
|
||||
- if runtime.GOOS == "darwin" {
|
||||
- bindModifiers = ":delegated"
|
||||
- }
|
||||
- if selinux.GetEnabled() {
|
||||
- bindModifiers = ":z"
|
||||
- }
|
||||
- binds = append(binds, fmt.Sprintf("%s:%s%s", rc.Config.Workdir, ext.ToContainerPath(rc.Config.Workdir), bindModifiers))
|
||||
+ // Bind done using --container-options command-line option
|
||||
} else {
|
||||
mounts[name] = ext.ToContainerPath(rc.Config.Workdir)
|
||||
}
|
||||
Reference in New Issue
Block a user