summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Ilvokhin <d@ilvokhin.com>2026-01-02 16:36:39 +0000
committerDmitry Ilvokhin <d@ilvokhin.com>2026-01-02 16:36:39 +0000
commitbc00a2e20410b088039217e0c61d30c796e1337d (patch)
tree0c0196b1b61f6106941613e39e38ed4f8ca794cd
parent4815660fc49e1a31964f37bb5d52593be8c91d3c (diff)
downloadpackages-bc00a2e20410b088039217e0c61d30c796e1337d.tar.gz
packages-bc00a2e20410b088039217e0c61d30c796e1337d.tar.bz2
packages-bc00a2e20410b088039217e0c61d30c796e1337d.zip
Add script to deploy built packages
-rwxr-xr-xbin/deploy26
1 files changed, 26 insertions, 0 deletions
diff --git a/bin/deploy b/bin/deploy
new file mode 100755
index 0000000..8ca375e
--- /dev/null
+++ b/bin/deploy
@@ -0,0 +1,26 @@
+#! /usr/bin/env bash
+
+if [ "$#" -ne 1 ]; then
+ echo "Usage: $0 PACKAGE" 1>&2
+ exit 1
+fi
+
+package=$1
+arch=x86_64
+host=packages.ilvokhin.com
+repo_dir=/srv/http/$host
+db=misc.db.tar.zst
+
+if [[ ! $package =~ $arch ]]; then
+ echo "Package arch is not $arch." 1>&2
+ exit 1
+fi
+
+rsync \
+ --compress \
+ --links \
+ --progress \
+ $package \
+ $host:$repo_dir/$arch
+
+ssh $host -- repo-add $repo_dir/$db $repo_dir/$arch/`basename $package`