aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorWilliam Hergès <william@herges.fr>2025-08-31 16:06:05 +0200
committerWilliam Hergès <william@herges.fr>2025-08-31 16:06:05 +0200
commit1200d0aef43d2ba771f3262e5adf23b8dc8577d0 (patch)
treea835702f86eb7726f5fd74c8e51851df5261c68f /justfile
parent05941e243f9bef6c8f461bafae9dbd12a88362b6 (diff)
ci(scripts): justfile for common task
Diffstat (limited to 'justfile')
-rw-r--r--justfile18
1 files changed, 18 insertions, 0 deletions
diff --git a/justfile b/justfile
new file mode 100644
index 0000000..f3916dd
--- /dev/null
+++ b/justfile
@@ -0,0 +1,18 @@
+dev:
+ podman network create db
+ podman run -p 5432:5432 --rm --network db --name postgres --env-file .env -v ./data:/var/lib/postgresql/data -d postgres:alpine
+ podman run -p 8080:8080 --rm --network db --name adminer -d adminer
+ go run .
+
+update:
+ git stash
+ git pull
+ git stash pop
+ go run .
+
+stop:
+ podman stop postgres adminer
+ podman network rm db
+
+build:
+ go build . \ No newline at end of file