summaryrefslogtreecommitdiff
path: root/jobs/turris-updater-conf.run
blob: fd2f3e0180319e6f76aa0d192c4e071f280e33af (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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.sec -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