From e65b36eabb550d1bc1036c6e2eaa3ea25f91651f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Wed, 29 Aug 2018 10:54:23 +0200 Subject: Use ssh to access our git server --- ssh/config | 5 +++++ templates/turris3x.run | 2 +- templates/turris4x.run | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ssh/config b/ssh/config index 5e0493b..ec35852 100644 --- a/ssh/config +++ b/ssh/config @@ -7,3 +7,8 @@ Host upload User upload Hostname cynerd.cz IdentityFile ~/upload.ssh.key + +Host git.cynerd.cz cynerd.cz + User git + Hostname cynerd.cz + IdentityFile ~/git.ssh.key diff --git a/templates/turris3x.run b/templates/turris3x.run index c99342d..98dfa15 100755 --- a/templates/turris3x.run +++ b/templates/turris3x.run @@ -4,7 +4,7 @@ set -e . utils echo_stage "Get packages" -git_clone "https://git.cynerd.cz/openwrt-personal-pkgs" pkgs turris3x +git_clone "git@cynerd.cz:openwrt-personal-pkgs" pkgs turris3x SDK="$WORKSPACE/sdk.tar.bz2" if [ ! -e "$SDK" ] || [ $(expr $(date -u +%s) - $(stat -c %Z "$SDK")) -gt 86400 ]; then diff --git a/templates/turris4x.run b/templates/turris4x.run index f83619f..c6e676f 100755 --- a/templates/turris4x.run +++ b/templates/turris4x.run @@ -7,7 +7,7 @@ GWORKSPACE=~/workspace/turris4x MAKE="make -j4 IS_TTY=1 BUILD_LOG=1" echo_stage "Get packages" -git_clone "https://git.cynerd.cz/openwrt-personal-pkgs" pkgs +git_clone "git@cynerd.cz:openwrt-personal-pkgs" pkgs curl "https://repo.turris.cz/$BOARD-$BRANCH/git-hash" > git-hash laminar_self_lock sdk -- cgit v1.2.3