From b9e0da3d94535528e0fc85e96926190b20d685ec Mon Sep 17 00:00:00 2001 From: Jason Kridner <jkridner@beagleboard.org> Date: Tue, 4 Jun 2024 11:44:21 -0400 Subject: [PATCH] missed a cp --- gitlab-build.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gitlab-build.sh b/gitlab-build.sh index fed12b21..9c5f3ddd 100755 --- a/gitlab-build.sh +++ b/gitlab-build.sh @@ -76,12 +76,12 @@ HERE # Update docs.beagleboard.org if [ "$CI_COMMIT_TAG" != "" ]; then - if [ "$VER_DIR" = "latest" ]; then - cp public/index.html /var/www/docs - fi mkdir -p ~/.ssh eval "$(ssh-agnet -s)" echo "${PRIVATE_KEY}" | base64 -d | ssh-add - + if [ "$VER_DIR" = "latest" ]; then + rsync -v -a --delete public/index.html docs@beagleboard.org:/var/www/docs/ + fi rsync -v -a --delete public/$VER_DIR/. docs@beagleboard.org:/var/www/docs/$VER_DIR fi fi -- GitLab