aboutsummaryrefslogtreecommitdiff
path: root/docker.go
blob: 420177a8243e250dcb55e6cff67efe3f87479267 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)
}