aboutsummaryrefslogtreecommitdiff
path: root/justfile
diff options
context:
space:
mode:
authorRubén Beltrán del Río <jj@r.bdr.sh>2026-04-06 11:43:38 +0200
committerRubén Beltrán del Río <jj@r.bdr.sh>2026-04-06 12:16:54 +0200
commitbc54383253343c32a856ebbc465f7f8a7243ffc2 (patch)
tree09b2cc10e407e735f9ea23de9ae1b5ff26b94521 /justfile
parent9ae63fb6778c97378cce82774508da33a9339a83 (diff)
Use an .env file for the release URLs
Diffstat (limited to 'justfile')
-rw-r--r--justfile10
1 files changed, 4 insertions, 6 deletions
diff --git a/justfile b/justfile
index b694d2c..31e37da 100644
--- a/justfile
+++ b/justfile
@@ -1,3 +1,5 @@
+set dotenv-load
+
# Configuration ################################################################
app_name := "map"
channel := "unstable"
@@ -21,10 +23,6 @@ appimage_container := "trixie"
all_containers := f"arch {{fedora_versions}} {{debian_versions}}"
container_image_prefix := "map-build"
-# Distribution Hosts -----------------------------------------------------------
-distribution_host := "deploy@build.r.bdr.sh"
-distribution_path := f"/srv/http/build.r.bdr.sh/{{app_name}}-linux"
-
# Build ########################################################################
# Setup the meson build directory.
@@ -234,8 +232,8 @@ _sign file version platform:
# Uploads a file and its signature.
_upload file:
- rsync -avz {{file}}.minisig {{distribution_host}}:{{distribution_path}}
- rsync -avz {{file}} {{distribution_host}}:{{distribution_path}}
+ rsync -avz {{file}}.minisig $DISTRIBUTION_HOST:$DISTRIBUTION_PATH
+ rsync -avz {{file}} $DISTRIBUTION_HOST:$DISTRIBUTION_PATH
# Sign and upload a file.
_sign_and_upload file: (_sign file channel architecture) (_upload file)