From a9f9243afc4583126c3eae2226ca4c3c8f30bd18 Mon Sep 17 00:00:00 2001 From: Alexander Neumann Date: Sat, 17 Feb 2018 19:10:32 +0100 Subject: [PATCH] scripts/release: Fix usage for restic/builder The restic/builder Docker container now has a slightly different usage. --- scripts/release.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/release.go b/scripts/release.go index 5f05b607e..24fb1ca9a 100644 --- a/scripts/release.go +++ b/scripts/release.go @@ -239,7 +239,7 @@ func preCheckDockerBuilderGoVersion() { localVersion := strings.TrimSpace(string(buf)) run("docker", "pull", "restic/builder") - buf, err = exec.Command("docker", "run", "--rm", "restic/builder", "-").Output() + buf, err = exec.Command("docker", "run", "--rm", "restic/builder", "go", "version").Output() if err != nil { die("unable to check Go version in docker image: %v", err) } @@ -299,7 +299,7 @@ func exportTar() { func runBuild() { msg("building binaries...") - run("docker", "run", "--rm", "--volume", getwd()+":/home/build", "restic/builder", opts.tarFilename) + run("docker", "run", "--rm", "--volume", getwd()+":/home/build", "restic/builder", "build.sh", opts.tarFilename) } func findBuildDir() string {