aboutsummaryrefslogtreecommitdiff
path: root/cmd/xedn
diff options
context:
space:
mode:
authorXe Iaso <me@xeiaso.net>2023-08-11 19:51:49 -0400
committerXe Iaso <me@xeiaso.net>2023-08-11 19:51:49 -0400
commitbacd38d2a3a68c2ac951be0b3763bdf7caf45f23 (patch)
tree5f8b2d9dd3e9a7cafa57ed71995308d1eae009c9 /cmd/xedn
parent6607ca0ec6565130aaec80cc750ce5d3cde15924 (diff)
downloadx-bacd38d2a3a68c2ac951be0b3763bdf7caf45f23.tar.xz
x-bacd38d2a3a68c2ac951be0b3763bdf7caf45f23.zip
replace all build.go files with yeetfiles
Signed-off-by: Xe Iaso <me@xeiaso.net>
Diffstat (limited to 'cmd/xedn')
-rw-r--r--cmd/xedn/build.go25
1 files changed, 0 insertions, 25 deletions
diff --git a/cmd/xedn/build.go b/cmd/xedn/build.go
deleted file mode 100644
index 11aea9b..0000000
--- a/cmd/xedn/build.go
+++ /dev/null
@@ -1,25 +0,0 @@
-//go:build ignore
-
-// Builds and deploys the application to fly.io.
-package main
-
-import (
- "context"
- "os"
-
- "within.website/x/internal"
- "within.website/x/internal/yeet"
-)
-
-func main() {
- internal.HandleStartup()
-
- ctx, cancel := context.WithCancel(context.Background())
- defer cancel()
-
- env := append(os.Environ(), []string{"CGO_ENABLED=0", "GOOS=linux"}...)
- yeet.ShouldWork(ctx, env, yeet.WD, "nix", "build", ".#docker.xedn")
- yeet.DockerLoadResult(ctx, "./result")
- yeet.DockerPush(ctx, "registry.fly.io/xedn:latest")
- yeet.ShouldWork(ctx, env, yeet.WD, "flyctl", "deploy", "--now")
-}