mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
enable it
This commit is contained in:
parent
1a15d941e0
commit
401e6f2309
2 changed files with 9 additions and 23 deletions
22
.travis.yml
22
.travis.yml
|
|
@ -9,8 +9,7 @@ jobs:
|
|||
- azure-osx
|
||||
|
||||
include:
|
||||
# These builders create the Docker sub-images for multi-arch push and each
|
||||
# will attempt to push the multi-arch image if they are the last builder
|
||||
# This builder create and push the Docker images for all architectures
|
||||
- stage: build
|
||||
if: type = push
|
||||
os: linux
|
||||
|
|
@ -26,24 +25,7 @@ jobs:
|
|||
before_install:
|
||||
- export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
script:
|
||||
- go run build/ci.go docker -image -manifest amd64,arm64 -upload ethereum/client-go
|
||||
|
||||
- stage: build
|
||||
if: type = push
|
||||
os: linux
|
||||
arch: arm64
|
||||
dist: focal
|
||||
go: 1.23.x
|
||||
env:
|
||||
- docker
|
||||
services:
|
||||
- docker
|
||||
git:
|
||||
submodules: false # avoid cloning ethereum/tests
|
||||
before_install:
|
||||
- export DOCKER_CLI_EXPERIMENTAL=enabled
|
||||
script:
|
||||
- go run build/ci.go docker -image -manifest amd64,arm64 -upload ethereum/client-go
|
||||
- go run build/ci.go dockerx -manifest amd64,arm64 -upload ethereum/client-gox
|
||||
|
||||
# This builder does the Linux Azure uploads
|
||||
- stage: build
|
||||
|
|
|
|||
10
build/ci.go
10
build/ci.go
|
|
@ -718,6 +718,10 @@ func maybeSkipArchive(env build.Environment) {
|
|||
log.Printf("skipping archive creation because this is a PR build")
|
||||
os.Exit(0)
|
||||
}
|
||||
if env.Branch == "buildx" {
|
||||
// Temporarily allow this
|
||||
return
|
||||
}
|
||||
if env.Branch != "master" && !strings.HasPrefix(env.Tag, "v1.") {
|
||||
log.Printf("skipping archive creation because branch %q, tag %q is not on the inclusion list", env.Branch, env.Tag)
|
||||
os.Exit(0)
|
||||
|
|
@ -923,7 +927,7 @@ func doDockerBuildx(cmdline []string) {
|
|||
var tags []string
|
||||
|
||||
switch {
|
||||
case env.Branch == "master":
|
||||
case env.Branch == "master" || env.Branch == "buildx":
|
||||
tags = []string{"latest"}
|
||||
case strings.HasPrefix(env.Tag, "v1."):
|
||||
tags = []string{"stable", fmt.Sprintf("release-1.%d", params.VersionMinor), "v" + params.Version}
|
||||
|
|
@ -938,7 +942,7 @@ func doDockerBuildx(cmdline []string) {
|
|||
} {
|
||||
var subImages []string
|
||||
for _, tag := range tags { // latest, stable etc
|
||||
gethImage := fmt.Sprintf("%s%s", spec.base, tag)
|
||||
gethImage := fmt.Sprintf("%s%s", spec.base, tag)
|
||||
for _, arch := range strings.Split(*manifest, ",") { //amd64. arm64
|
||||
subImage := fmt.Sprintf("%s-%s", gethImage, arch)
|
||||
build.MustRunCommand("docker", "buildx",
|
||||
|
|
@ -950,7 +954,7 @@ func doDockerBuildx(cmdline []string) {
|
|||
"--file", spec.file, ".")
|
||||
subImages = append(subImages, subImage)
|
||||
}
|
||||
build.MustRunCommand("docker", append([]string{ "buildx", "imagetools", "create","--tag", gethImage}, subImages...)...)
|
||||
build.MustRunCommand("docker", append([]string{"buildx", "imagetools", "create", "--tag", gethImage}, subImages...)...)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue