1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00

scripts: fix gh-pages build failure in prow

Work around stupid uid/gid magic that happens inside the jekyll docker image.
This commit is contained in:
Markus Lehtonen 2020-10-22 15:56:40 +03:00
parent c793796ba5
commit ad0db00a50

View file

@ -1,3 +1,11 @@
#!/bin/bash -e
# Pre-create output directory with all write access. The Jekyll docker image is
# stupid enough to do all sorts of uid/gid/chown magic making build fail for
# root user. In prow we run as root because of DIND.
_outdir="docs/_site"
mkdir -p "$_outdir"
chmod a+rwx "$_outdir"
# Build docs
make site-build