mage: fixup packaging and docker rules
This commit is contained in:
parent
1ef8f06268
commit
92871b43ed
8
mage.go
8
mage.go
|
@ -116,7 +116,7 @@ func Docker() {
|
||||||
qod.ANE(err)
|
qod.ANE(err)
|
||||||
|
|
||||||
shouldWork(ctx, nil, wd, "box", "box.rb")
|
shouldWork(ctx, nil, wd, "box", "box.rb")
|
||||||
shouldWork(ctx, nil, wd, "docker", "tag", "xena/route:"+ver)
|
shouldWork(ctx, nil, wd, "docker", "tag", "xena/route:latest", "xena/route:"+ver)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Linux builds binaries for linux
|
// Linux builds binaries for linux
|
||||||
|
@ -176,11 +176,11 @@ func Package() {
|
||||||
if osname == "windows" {
|
if osname == "windows" {
|
||||||
file = file + ".exe"
|
file = file + ".exe"
|
||||||
}
|
}
|
||||||
shouldWork(ctx, nil, filepath.Join(wd, "bin", osname), "cp", "-vrf", file, dir)
|
shouldWork(ctx, nil, filepath.Join(wd, "bin", osname), "cp", "-rf", file, dir)
|
||||||
}
|
}
|
||||||
|
|
||||||
shouldWork(ctx, nil, wd, "cp", "-vrf", "doc", dir)
|
shouldWork(ctx, nil, wd, "cp", "-rf", "doc", dir)
|
||||||
shouldWork(ctx, nil, wd, "cp", "-vrf", "README.md", dir)
|
shouldWork(ctx, nil, wd, "cp", "-rf", "README.md", dir)
|
||||||
|
|
||||||
shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".")
|
shouldWork(ctx, nil, dir, "tar", "czf", filepath.Join(wd, "bin", fmt.Sprintf("route-%s-%s.tar.gz", ver, osname)), ".")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue