diff options
| author | Christine Dodrill <me@christine.website> | 2018-10-05 14:30:43 -0700 |
|---|---|---|
| committer | Christine Dodrill <me@christine.website> | 2018-10-05 14:31:22 -0700 |
| commit | a37fe34bc17f2f3d122da6b121ed83ef8ee7b0fa (patch) | |
| tree | ac3be2cf3f091ec3cec4aa247f1b9cb264c1bee5 /docker.go | |
| parent | 2c85a708989624df6bb9eca0a77ceeda8cf05f28 (diff) | |
| download | x-a37fe34bc17f2f3d122da6b121ed83ef8ee7b0fa.tar.xz x-a37fe34bc17f2f3d122da6b121ed83ef8ee7b0fa.zip | |
automate xena/xperimental build
Diffstat (limited to 'docker.go')
| -rw-r--r-- | docker.go | 23 |
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) +} |
