summaryrefslogtreecommitdiff
path: root/jobs/turris-updater-conf.run
blob: 8e9f0e8a91bec0a8110c6c7b840b6fab146ac84f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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 ~/keys/openwrt-repo.sec -m pkgs/updater.lua

echo_stage "Deploy"
ssh upload mkdir -p "/var/www/repo/turris"
sftp -b - upload <<EOF
	put pkgs/updater.lua /var/www/repo/turris/updater.lua
	put pkgs/updater.lua.sig /var/www/repo/turris/updater.lua.sig
EOF