From 3243258ceaf6f4c7af5dfe13bd998becc185db8a Mon Sep 17 00:00:00 2001
From: Jason Kridner <jkridner@beagleboard.org>
Date: Mon, 26 Sep 2022 23:31:48 -0400
Subject: [PATCH] CI: remove test rsync

---
 gitlab-build.sh | 8 +-------
 1 file changed, 1 insertion(+), 7 deletions(-)

diff --git a/gitlab-build.sh b/gitlab-build.sh
index e02373ec..2ae2851c 100755
--- a/gitlab-build.sh
+++ b/gitlab-build.sh
@@ -30,12 +30,6 @@ cat <<HERE > public/index.html
 </html>
 HERE
 
-# Brought back for more testing...
-cp public/index.html /var/www/docs
-apk add rsync
-rsync -a --delete public/latest/. /var/www/docs/latest
-# End testing.
-
 elif [ "$CI_COMMIT_BRANCH" != "" ]; then
 
 sphinx-build -b html . public/$CI_COMMIT_BRANCH/
@@ -43,7 +37,7 @@ sphinx-build -M latexpdf . public/$CI_COMMIT_BRANCH/
 mv public/$CI_COMMIT_BRANCH/latex/beagleboard-docs.pdf public/$CI_COMMIT_BRANCH/
 rm -rf public/$CI_COMMIT_BRANCH/latex
 
-elif [ "$CI_COMMIT_TAG" != "" ]; then
+elif [ "$CI_COMMIT_TAG" != "" && "$CI_PROJECT_NAMESPACE" = "docs" ]; then
 
 # Find which branch has the tag commit
 export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | sed 's/.*origin\///')
-- 
GitLab