File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33set -ex
44trap " 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
89fi
910
1011# Current path must have the following repos cloned:
@@ -30,7 +31,7 @@ elif [ -n "$BRANCH_NAME" ]; then
3031 BRANCH=" $BRANCH_NAME "
3132fi
3233
33- c=$( buildah from -v " $PWD " :/nt docs-revamp-22 )
34+ c=$( buildah from -v " $PWD " :/nt ${image_name} )
3435trap ' buildah run "$c" bash -c "sudo chown -R root:root /nt; sudo chmod -R a+rwX /nt"; buildah rm "$c" >/dev/null' EXIT
3536buildah run " $c " bash -x documentation/generator/build/main.sh " $BRANCH " " $PACKAGE_JOB " " $PACKAGE_UPLOAD_DIRECTORY " " $PACKAGE_BUILD " " $LTS_VERSION "
3637buildah run " $c " bash -x documentation/generator/_scripts/_publish.sh " $BRANCH "
You can’t perform that action at this time.
0 commit comments