Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 3243258c authored by Jason Kridner's avatar Jason Kridner
Browse files

CI: remove test rsync

parent e7a9b9d2
Branches
Tags
No related merge requests found
...@@ -30,12 +30,6 @@ cat <<HERE > public/index.html ...@@ -30,12 +30,6 @@ cat <<HERE > public/index.html
</html> </html>
HERE 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 elif [ "$CI_COMMIT_BRANCH" != "" ]; then
sphinx-build -b html . public/$CI_COMMIT_BRANCH/ sphinx-build -b html . public/$CI_COMMIT_BRANCH/
...@@ -43,7 +37,7 @@ sphinx-build -M latexpdf . 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/ mv public/$CI_COMMIT_BRANCH/latex/beagleboard-docs.pdf public/$CI_COMMIT_BRANCH/
rm -rf public/$CI_COMMIT_BRANCH/latex 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 # Find which branch has the tag commit
export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | sed 's/.*origin\///') export GIT_BRANCH=$(git branch -a --contains tags/$CI_COMMIT_TAG | grep origin | sed 's/.*origin\///')
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment