2 Commits

Author SHA1 Message Date
Joshua Humphries
4b65b3ee55 fix release script: 'docker buildx create' step needs to be re-runnable without error (#264) 2021-10-07 16:10:47 -04:00
Jeffrey Duce
9ac7e3a34d set value of creds instead of creating new variable (#263) 2021-10-07 15:49:59 -04:00
2 changed files with 2 additions and 2 deletions

View File

@@ -422,7 +422,7 @@ func main() {
tlsConf.KeyLogWriter = w tlsConf.KeyLogWriter = w
} }
creds := credentials.NewTLS(tlsConf) creds = credentials.NewTLS(tlsConf)
// can use either -servername or -authority; but not both // can use either -servername or -authority; but not both
if *serverName != "" && *authority != "" { if *serverName != "" && *authority != "" {

View File

@@ -47,7 +47,7 @@ echo "$VERSION" > VERSION
$PREFIX docker run --privileged --rm tonistiigi/binfmt:qemu-v6.1.0 --install all $PREFIX docker run --privileged --rm tonistiigi/binfmt:qemu-v6.1.0 --install all
# Create a new builder instance # Create a new builder instance
export DOCKER_CLI_EXPERIMENTAL=enabled export DOCKER_CLI_EXPERIMENTAL=enabled
$PREFIX docker buildx create --use --name multiarch-builder $PREFIX docker buildx create --use --name multiarch-builder --node multiarch-builder0
# push to docker hub, both the given version as a tag and for "latest" tag # push to docker hub, both the given version as a tag and for "latest" tag
$PREFIX docker buildx build --platform linux/amd64,linux/s390x,linux/arm64 --tag fullstorydev/grpcurl:${VERSION} --tag fullstorydev/grpcurl:latest --push --progress plain --no-cache . $PREFIX docker buildx build --platform linux/amd64,linux/s390x,linux/arm64 --tag fullstorydev/grpcurl:${VERSION} --tag fullstorydev/grpcurl:latest --push --progress plain --no-cache .
rm VERSION rm VERSION