Skip to content

Commit

Permalink
XENFRED-4897 WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
kpiot123 committed Sep 12, 2023
1 parent d9ac974 commit 17e20fe
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build-websites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ split_manual() {
tar tf "build/normalized/$productName/$versionName.tar"
sync
docker pull hub.xenit.eu/private/xenit-manuals-markdown-splitter:$MARKDOWNTOWEBSITE_VERSION
timeout 5 cat "build/normalized/$productName/$versionName.tar" | docker run --rm -i hub.xenit.eu/private/xenit-manuals-markdown-splitter:$MARKDOWNTOWEBSITE_VERSION normalized.md "target-path=$versionName" "weight=$WEIGHT" > "build/normalized/$productName/$versionName-out.tar"
cat "build/normalized/$productName/$versionName.tar" | docker run --name splitter_$productName_$versionName -i hub.xenit.eu/private/xenit-manuals-markdown-splitter:$MARKDOWNTOWEBSITE_VERSION normalized.md "target-path=$versionName" "weight=$WEIGHT" > "build/normalized/$productName/$versionName-out.tar"
docker logs splitter_$productName_$versionName
sync
}

Expand All @@ -69,7 +70,8 @@ build_product_website() {
mkdir -p "build/website/$productName"
cp -r "docs/$productName/_hugo" "build/product/$productName/_hugo"
docker pull hub.xenit.eu/private/xenit-manuals-hugo-generator:$MARKDOWNTOWEBSITE_VERSION
timeout 10 tar c --portability -C "build/product/$productName" . | docker run --rm -i hub.xenit.eu/private/xenit-manuals-hugo-generator:$MARKDOWNTOWEBSITE_VERSION | tar x -C "build/website/$productName"
tar c --portability -C "build/product/$productName" . | docker run --name website_builder_$productName_$versionName -i hub.xenit.eu/private/xenit-manuals-hugo-generator:$MARKDOWNTOWEBSITE_VERSION | tar x -C "build/website/$productName"
docker logs website_builder_$productName_$versionName
sync
}

Expand Down

0 comments on commit 17e20fe

Please sign in to comment.