added native copy command for multi-arch support

This commit is contained in:
Brad Rydzewski
2020-11-11 17:46:10 -05:00
parent 2457d8d0d7
commit dbafc98217
3 changed files with 77 additions and 2 deletions

View File

@@ -327,8 +327,8 @@ func (c *Compiler) Compile(ctx context.Context, args runtime.CompilerArgs) runti
Labels: labels,
Pull: engine.PullIfNotExists,
Image: image.Expand(c.Tmate.Image),
Entrypoint: []string{"/bin/sh", "-c"},
Command: []string{"cp /bin/tmate /usr/drone/bin/"},
Entrypoint: []string{"/bin/drone-runner-docker"},
Command: []string{"copy"},
Network: "none",
})