From a37fe34bc17f2f3d122da6b121ed83ef8ee7b0fa Mon Sep 17 00:00:00 2001 From: Christine Dodrill Date: Fri, 5 Oct 2018 14:30:43 -0700 Subject: automate xena/xperimental build --- docker.go | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 docker.go (limited to 'docker.go') diff --git a/docker.go b/docker.go new file mode 100644 index 0000000..420177a --- /dev/null +++ b/docker.go @@ -0,0 +1,23 @@ +//+build ignore + +// Makes the docker image xena/xperimental. +package main + +import ( + "context" + "log" + + "github.com/Xe/x/internal" +) + +func main() { + ctx, cancel := context.WithCancel(context.Background()) + defer cancel() + + tag := "xena/xperimental:" + internal.DateTag + + internal.ShouldWork(ctx, nil, internal.WD, "docker", "build", "-t", tag, ".") + internal.ShouldWork(ctx, nil, internal.WD, "docker", "push", tag) + + log.Printf("use %s", tag) +} -- cgit v1.2.3