diff options
-rw-r--r-- | jobs/turris-updater-conf.conf | 2 | ||||
-rwxr-xr-x | jobs/turris-updater-conf.run | 17 | ||||
-rw-r--r-- | nodes/rapid.conf | 2 |
3 files changed, 21 insertions, 0 deletions
diff --git a/jobs/turris-updater-conf.conf b/jobs/turris-updater-conf.conf new file mode 100644 index 0000000..ee7375a --- /dev/null +++ b/jobs/turris-updater-conf.conf @@ -0,0 +1,2 @@ +TAGS=rapid +TIMEOUT=3600 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 diff --git a/nodes/rapid.conf b/nodes/rapid.conf new file mode 100644 index 0000000..dc6a190 --- /dev/null +++ b/nodes/rapid.conf @@ -0,0 +1,2 @@ +EXECUTORS=20 +TAGS=rapid |