From ae5289b2ecf9f717e7f96312187f20065f39e1be Mon Sep 17 00:00:00 2001
From: Jason Kridner <jkridner@beagleboard.org>
Date: Tue, 4 Jun 2024 11:07:53 -0400
Subject: [PATCH] Use docs account for rsync to build on any machine

---
 gitlab-build.sh | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/gitlab-build.sh b/gitlab-build.sh
index c651c1c7..fed12b21 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -79,7 +79,10 @@ HERE
 			if [ "$VER_DIR" = "latest" ]; then
 				cp public/index.html /var/www/docs
 			fi
-			rsync -v -a --delete public/$VER_DIR/. /var/www/docs/$VER_DIR
+			mkdir -p ~/.ssh
+			eval "$(ssh-agnet -s)"
+			echo "${PRIVATE_KEY}" | base64 -d | ssh-add -
+			rsync -v -a --delete public/$VER_DIR/. docs@beagleboard.org:/var/www/docs/$VER_DIR
 		fi
 	fi
 }
-- 
GitLab