mirror of
https://github.com/harness/drone.git
synced 2025-05-04 23:09:34 +08:00
parent
37980937b5
commit
5ccbbd76a6
@ -369,7 +369,7 @@ func CopyImage(
|
|||||||
|
|
||||||
// Build skopeo command
|
// Build skopeo command
|
||||||
platform := getPlatform(runArgsMap)
|
platform := getPlatform(runArgsMap)
|
||||||
args := []string{"copy"}
|
args := []string{"copy", "--debug"}
|
||||||
|
|
||||||
if platform != "" {
|
if platform != "" {
|
||||||
args = append(args, "--override-os", platform)
|
args = append(args, "--override-os", platform)
|
||||||
@ -385,6 +385,7 @@ func CopyImage(
|
|||||||
|
|
||||||
// Source and destination
|
// Source and destination
|
||||||
source := "docker://" + imageName
|
source := "docker://" + imageName
|
||||||
|
// TODO: if imageName doesn't have tag, use latest in destination
|
||||||
destination := "docker-daemon:" + imageName
|
destination := "docker-daemon:" + imageName
|
||||||
args = append(args, source, destination)
|
args = append(args, source, destination)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user