File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Stop script execution if a command has an error
4+ set -e
5+
36# Check if Docker is available
47if ! command -v docker & > /dev/null
58then
@@ -17,9 +20,11 @@ writerside_artifacts_tmp_path="docs/writerside-lpk"
1720sys_user_id=$( id -u)
1821sys_group_id=$( id -g)
1922
20- # Clean build dir, run Dokka, run Docker (to build Writerside part)
21- rm -rf $root_path /$build_path && \
22- ./gradlew dokkaHtml && \
23+ # Clean build dir
24+ rm -rf $root_path /$build_path
25+ # Run Dokka
26+ ./gradlew dokkaHtml
27+ # Run Docker (to build Writerside part)
2328docker run --rm -v $root_path :/opt/sources \
2429 $docker_image \
2530 /bin/bash -c "
Original file line number Diff line number Diff line change 11#! /usr/bin/env bash
22
3+ # Stop script execution if a command has an error
4+ set -e
5+
36# Check if Docker is available
47if ! command -v docker & > /dev/null
58then
@@ -62,6 +65,8 @@ docker run --rm -v $root_path:/opt/sources \
6265 unzip -O UTF-8 -qq '/opt/sources/${writerside_artifacts_tmp_path} /algolia-indexes*.zip' -d /opt/sources/${algolia_index_tmp_path} /; \
6366 rm -rf /opt/sources/${writerside_artifacts_tmp_path}
6467 " ; \
68+
69+ # Run Docker (to update Aligola index)
6570docker run --rm -v $root_path :/opt/sources \
6671 $algolia_publisher_docker_image \
6772 /bin/bash -c "
You can’t perform that action at this time.
0 commit comments