diff --git a/build-websites.sh b/build-websites.sh index f6b2870..0a2fc64 100755 --- a/build-websites.sh +++ b/build-websites.sh @@ -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 } @@ -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 }