From dcbadadc86eef30bf6673d8446ebdb8fe7b45177 Mon Sep 17 00:00:00 2001 From: Xe Iaso Date: Sun, 5 Mar 2023 20:07:36 -0500 Subject: bump flake Signed-off-by: Xe Iaso --- docker.go | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) delete mode 100644 docker.go (limited to 'docker.go') diff --git a/docker.go b/docker.go deleted file mode 100644 index 1157e39..0000000 --- a/docker.go +++ /dev/null @@ -1,49 +0,0 @@ -//+build ignore - -// Makes the docker image xena/xperimental. -package main - -import ( - "context" - "flag" - "log" - "path/filepath" - - "within.website/x/internal" - "within.website/x/internal/yeet" -) - -var ( - dontPush = flag.Bool("dont-push", false, "if set, don't push docker images") -) - -func main() { - internal.HandleStartup() - ctx, cancel := context.WithCancel(context.Background()) - defer cancel() - - tag := "xena/xperimental" - yeet.DockerBuild(ctx, yeet.WD, tag) - - resTag := yeet.DockerTag(ctx, "xena", "xperimental", tag) - otherResTag := yeet.DockerTag(ctx, "docker.pkg.github.com/xe/x", "xperimental", tag) - - gitTag, err := yeet.GitTag(ctx) - if err != nil { - log.Fatal(err) - } - - dnsdTag := "xena/dnsd:" + gitTag - - yeet.DockerBuild(ctx, filepath.Join(yeet.WD, "cmd", "dnsd"), dnsdTag, "--build-arg", "X_VERSION="+gitTag) - dnsdGithubTag := yeet.DockerTag(ctx, "docker.pkg.github.com/xe/x", "dnsd", dnsdTag) - - if !*dontPush { - yeet.ShouldWork(ctx, nil, yeet.WD, "docker", "push", resTag) - yeet.ShouldWork(ctx, nil, yeet.WD, "docker", "push", otherResTag) - yeet.ShouldWork(ctx, nil, yeet.WD, "docker", "push", dnsdGithubTag) - } - - log.Printf("xperimental:\t%s", otherResTag) - log.Printf("dnsd:\t%s", dnsdGithubTag) -} -- cgit v1.2.3