From 9a8b298ac9dbbddfcfeb92a644bf28545ded88ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Roman=20Van=C3=AD=C4=8Dek?= Date: Fri, 28 Jul 2023 22:02:00 +0200 Subject: [PATCH] Try to bind working dir so deduplication resolves conflict with container-options --- plugin.go | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/plugin.go b/plugin.go index cfd7ce3..8be37d5 100644 --- a/plugin.go +++ b/plugin.go @@ -15,7 +15,6 @@ import ( "github.com/drone-plugins/drone-github-actions/utils" "github.com/pkg/errors" - "time" "github.com/opencontainers/selinux/go-selinux" docker "github.com/docker/docker/client" ) @@ -108,9 +107,9 @@ func (p Plugin) Exec() error { } cmdArgs = append(cmdArgs, "--container-options", fmt.Sprintf("--volume=%s:%s%s", hostWorkDirPath, guestWorkDirPath, bindModifiers)) - } else { + }// else { cmdArgs = append(cmdArgs, "-b") - } + //} cmd := exec.Command("act", cmdArgs...) @@ -161,8 +160,6 @@ func getWorkDirPath(p Plugin, ctx context.Context) (string, string, error) { } } - time.Sleep(86400 * time.Second) - return "", "", errors.New("mount point with working directory not found") }