aboutsummaryrefslogtreecommitdiffstats
path: root/jjb/daily-jjb-doc-update
diff options
context:
space:
mode:
authorJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-05-23 15:20:51 +0200
committerJan-Simon Möller <jsmoeller@linuxfoundation.org>2019-05-23 15:20:51 +0200
commit2b0f9023faacc19f95fed5be51a4f0df75c3f90d (patch)
treeaee15786a69db9f2badfd11f489531d7f2b1b61a /jjb/daily-jjb-doc-update
parentc7a8ed61987ff51c8926ac000da30354b3460253 (diff)
Make sure we keep the CNAME file in the doc upload
Change-Id: I8fe8d808b7d91342f6000d5a0232edaa9662e809 Signed-off-by: Jan-Simon Möller <jsmoeller@linuxfoundation.org>
Diffstat (limited to 'jjb/daily-jjb-doc-update')
-rw-r--r--jjb/daily-jjb-doc-update/include-doc-upload.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/jjb/daily-jjb-doc-update/include-doc-upload.sh b/jjb/daily-jjb-doc-update/include-doc-upload.sh
index 4518aea9..2dc54130 100644
--- a/jjb/daily-jjb-doc-update/include-doc-upload.sh
+++ b/jjb/daily-jjb-doc-update/include-doc-upload.sh
@@ -14,8 +14,13 @@ ssh-keyscan -H github.com >> ~/.ssh/known_hosts
rm -rf $TMPDIR || true
mkdir -p $TMPDIR
git clone -b gh-pages git@github.com:automotive-grade-linux/docs-gh-pages.git $TMPDIR/upload-gh-pages
+
rm -rf $TMPDIR/upload-gh-pages/*
cp -ar $HTDOCS/* $TMPDIR/upload-gh-pages/
+
+# tell github that we're serving this as docs.automotivelinux.org
+echo "docs.automotivelinux.org" > $TMPDIR/upload-gh-pages/CNAME
+
pushd $TMPDIR/upload-gh-pages
git config user.name build.automotivelinux.org
git config user.email jenkins@automotivelinux.org