2
2
mirror of https://github.com/octoleo/restic.git synced 2024-10-31 19:02:32 +00:00

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

View File

@ -239,7 +239,7 @@ func preCheckDockerBuilderGoVersion() {
localVersion := strings.TrimSpace(string(buf)) localVersion := strings.TrimSpace(string(buf))
run("docker", "pull", "restic/builder") 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 { if err != nil {
die("unable to check Go version in docker image: %v", err) die("unable to check Go version in docker image: %v", err)
} }
@ -299,7 +299,7 @@ func exportTar() {
func runBuild() { func runBuild() {
msg("building binaries...") 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 { func findBuildDir() string {