aboutsummaryrefslogtreecommitdiff
path: root/docker.go
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-03-05 20:07:36 -0500
committerXe Iaso <me@xeiaso.net>2023-03-05 20:07:36 -0500
commitdcbadadc86eef30bf6673d8446ebdb8fe7b45177 (patch)
treeff6f1275ec99ab3b3b943425d4dcc4451cb1b336 /docker.go
parent4b29ee13628ba92878c6ba75e5b17acd3a96bcd6 (diff)
downloadx-dcbadadc86eef30bf6673d8446ebdb8fe7b45177.tar.xz
x-dcbadadc86eef30bf6673d8446ebdb8fe7b45177.zip
bump flake
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'docker.go')
-rw-r--r--docker.go49
1 files changed, 0 insertions, 49 deletions
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)
-}