mirror of
https://github.com/octoleo/restic.git
synced 2024-11-24 21:57:41 +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:
parent
34bf9de339
commit
a9f9243afc
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user