Skip to content

Commit ec3c4dd

Browse files
authored
Merge pull request #3620 from craigcomstock/ent-13085-3.27
fix: make the container image to build docs clear on which platform we rely on: hugo at this time (3.27)
2 parents 53ad312 + 93cdbaf commit ec3c4dd

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

generator/build/run.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
set -ex
44
trap "echo FAILURE" ERR
55

6-
if ! buildah inspect docs-revamp-22 >/dev/null 2>&1; then
7-
buildah build-using-dockerfile -t docs-revamp-22 documentation/generator/build
6+
image_name=docs-hugo
7+
if ! buildah inspect ${image_name} >/dev/null 2>&1; then
8+
buildah build-using-dockerfile -t ${image_name} documentation/generator/build
89
fi
910

1011
# Current path must have the following repos cloned:
@@ -30,7 +31,7 @@ elif [ -n "$BRANCH_NAME" ]; then
3031
BRANCH="$BRANCH_NAME"
3132
fi
3233

33-
c=$(buildah from -v "$PWD":/nt docs-revamp-22)
34+
c=$(buildah from -v "$PWD":/nt ${image_name})
3435
trap 'buildah run "$c" bash -c "sudo chown -R root:root /nt; sudo chmod -R a+rwX /nt"; buildah rm "$c" >/dev/null' EXIT
3536
buildah run "$c" bash -x documentation/generator/build/main.sh "$BRANCH" "$PACKAGE_JOB" "$PACKAGE_UPLOAD_DIRECTORY" "$PACKAGE_BUILD" "$LTS_VERSION"
3637
buildah run "$c" bash -x documentation/generator/_scripts/_publish.sh "$BRANCH"

0 commit comments

Comments
 (0)