summaryrefslogtreecommitdiff
path: root/jobs/turris-updater-conf.run
diff options
context:
space:
mode:
Diffstat (limited to 'jobs/turris-updater-conf.run')
-rwxr-xr-xjobs/turris-updater-conf.run17
1 files changed, 17 insertions, 0 deletions
diff --git a/jobs/turris-updater-conf.run b/jobs/turris-updater-conf.run
new file mode 100755
index 0000000..8e39810
--- /dev/null
+++ b/jobs/turris-updater-conf.run
@@ -0,0 +1,17 @@
+#!/bin/sh
+# vim: ft=sh
+. "$(dirname "$(readlink -f "$0")")/../job.common"
+
+echo_stage "Get personal repository"
+git_clone "git@cynerd.cz:openwrt-personal-pkgs" pkgs
+
+echo_stage "Signing"
+signify -S -s ~/openwrt-repo.key -m pkgs/updater.lua
+
+echo_stage "Deploy"
+scp -r pkgs/updater.lua{,.sig} upload:
+ssh upload /bin/sh -e <<EOF
+ mkdir -p "/var/www/repo/turris"
+ mv updater.lua "/var/www/repo/turris/updater.lua"
+ mv updater.lua.sig "/var/www/repo/turris/updater.lua.sig"
+EOF