From 0f1bbf4cc4fe858a52d94cf27aee65d32109ec44 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Thu, 2 May 2019 10:16:42 +0200 Subject: Add turris updater configuration deployer --- jobs/turris-updater-conf.conf | 2 ++ jobs/turris-updater-conf.run | 17 +++++++++++++++++ nodes/rapid.conf | 2 ++ 3 files changed, 21 insertions(+) create mode 100644 jobs/turris-updater-conf.conf create mode 100755 jobs/turris-updater-conf.run create mode 100644 nodes/rapid.conf 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 <