From 92871b43eda497a6492fb47afaec6d910e6383a7 Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Sat, 30 Sep 2017 14:20:50 -0700 Subject: [PATCH] mage: fixup packaging and docker rules --- mage.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mage.go b/mage.go index ec9a298..7b93c2a 100644 --- a/mage.go +++ b/mage.go @@ -116,7 +116,7 @@ func Docker() { qod.ANE(err) 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 @@ -176,11 +176,11 @@ func Package() { if osname == "windows" { 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", "-vrf", "README.md", dir) + shouldWork(ctx, nil, wd, "cp", "-rf", "doc", 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)), ".") }