From bd6a6a2023649505ebcf7e78f2a47de57d0c72b0 Mon Sep 17 00:00:00 2001 From: benj Date: Wed, 24 May 2023 16:56:32 -0700 Subject: just script: amznl2 release 🫡 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- justfile | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/justfile b/justfile index 1bb89c3..d1b7058 100644 --- a/justfile +++ b/justfile @@ -4,14 +4,18 @@ PG_DB := "secd" PG_PORT := "5412" PG_URL := "postgres://" + PG_USER + ":" + PG_PASS + "@host.docker.internal:" + PG_PORT / PG_DB -run-debug: - @RUST_BACKTRACE=1 cargo run $@ +@run-debug: + RUST_BACKTRACE=1 cargo run $@ -build: - @cargo build +@build: + cargo build -build-prod: - @cargo build --release +@build-prod: + cargo build --release + +@release-amznl2: + cargo clean + docker run --rm -v ~/workspace/secdiam:/tmp/secdiam --network="host" bcbase:latest bash -c "cd /tmp/secdiam && /root/.cargo/bin/cargo build --release" @start-postgres: _start_postgres start-spice -- cgit v1.2.3