mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-18 01:43:47 +00:00
build: create multi-arch-builder only if it doesn't exist
This commit is contained in:
parent
ab191e3eaf
commit
1a0aadfcbe
1 changed files with 4 additions and 1 deletions
|
|
@ -720,7 +720,10 @@ func doDockerBuildx(cmdline []string) {
|
||||||
tags = []string{"stable", fmt.Sprintf("release-%v", version.Family), "v" + version.Semantic}
|
tags = []string{"stable", fmt.Sprintf("release-%v", version.Family), "v" + version.Semantic}
|
||||||
}
|
}
|
||||||
// Need to create a mult-arch builder
|
// Need to create a mult-arch builder
|
||||||
|
check := exec.Command("docker", "buildx", "inspect", "multi-arch-builder")
|
||||||
|
if check.Run() != nil {
|
||||||
build.MustRunCommand("docker", "buildx", "create", "--use", "--name", "multi-arch-builder", "--platform", *platform)
|
build.MustRunCommand("docker", "buildx", "create", "--use", "--name", "multi-arch-builder", "--platform", *platform)
|
||||||
|
}
|
||||||
|
|
||||||
for _, spec := range []struct {
|
for _, spec := range []struct {
|
||||||
file string
|
file string
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue