aboutsummaryrefslogtreecommitdiff
path: root/docker.go
diff options
context:
space:
mode:
Diffstat (limited to 'docker.go')
-rw-r--r--docker.go23
1 files changed, 23 insertions, 0 deletions
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)
+}