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 ee24c8f commit 658785b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build-websites.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ split_manual() {
WEIGHT=$[$WEIGHT + 1]
mkdir -p "build/product/$productName"
tar tf "build/normalized/$productName/$versionName.tar"
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"
timeout 2 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"
sync
}

Expand All @@ -66,7 +66,7 @@ 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
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"
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"
sync
}

Expand Down

0 comments on commit 658785b

Please sign in to comment.