scripts/release: Fix usage for restic/builder

The restic/builder Docker container now has a slightly different usage.
This commit is contained in:
Alexander Neumann 2018-02-17 19:10:32 +01:00
parent 34bf9de339
commit a9f9243afc
1 changed files with 2 additions and 2 deletions

View File

@ -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 {