aboutsummaryrefslogtreecommitdiff
path: root/cmd/robocadey2
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/robocadey2
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/robocadey2')
-rw-r--r--cmd/robocadey2/build.go25
-rwxr-xr-xcmd/robocadey2/do_image_gen.sh10
2 files changed, 0 insertions, 35 deletions
diff --git a/cmd/robocadey2/build.go b/cmd/robocadey2/build.go
deleted file mode 100644
index 752f354..0000000
--- a/cmd/robocadey2/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.robocadey2")
- yeet.DockerLoadResult(ctx, "./result")
- yeet.DockerPush(ctx, "registry.fly.io/xe-robocadey2:latest")
- yeet.ShouldWork(ctx, env, yeet.WD, "flyctl", "deploy", "--now")
-}
diff --git a/cmd/robocadey2/do_image_gen.sh b/cmd/robocadey2/do_image_gen.sh
deleted file mode 100755
index 18978e1..0000000
--- a/cmd/robocadey2/do_image_gen.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/usr/bin/env nix-shell
-#! nix-shell -p conda -i conda-shell
-
-set -euo pipefail
-
-cd $HOME/code/stable-diffusion
-source ~/.bashrc
-conda activate ldm
-
-python optimizedSD/robocadey.py --H 512 --W 512 --turbo --seed $SEED --from-file $OUTDIR/prompt.txt --outdir $OUTDIR