Workaround test

This commit is contained in:
2023-11-12 16:51:32 +01:00
parent da8571c718
commit 02b85c7603
7 changed files with 32 additions and 67 deletions

View File

@@ -44,7 +44,7 @@ func commandBuilder(daemon Daemon) *exec.Cmd {
for _, driveropt := range daemon.BuildkitDriverOpt.Value() {
args = append(args, "--driver-opt", driveropt)
}
return exec.Command(dockerExe, args...)
}
@@ -78,7 +78,7 @@ func commandBuild(build Build, dryrun bool) *exec.Cmd {
if build.NoCache {
args = append(args, "--no-cache")
}
for _, arg := range build.CacheFrom.Value() {
for _, arg := range build.CacheFrom {
args = append(args, "--cache-from", arg)
}
for _, arg := range build.CacheTo.Value() {

View File

@@ -64,7 +64,7 @@ type Build struct {
Target string // Docker build target
Output string // Docker build output
Pull bool // Docker build pull
CacheFrom cli.StringSlice // Docker build cache-from
CacheFrom []string // Docker build cache-from
CacheTo cli.StringSlice // Docker build cache-to
Compress bool // Docker build compress
Repo cli.StringSlice // Docker build repository

View File

@@ -1,7 +1,7 @@
package plugin
import (
"github.com/drone-plugins/drone-plugin-lib/drone"
"github.com/thegeeklab/drone-plugin-lib/v2/drone"
)
// Plugin implements drone.Plugin to provide the plugin implementation.