5443f0152f
Signed-off-by: French Ben <frenchben@docker.com> Signed-off-by: Tibor Vass <tibor@docker.com>
19 lines
462 B
Bash
Executable file
19 lines
462 B
Bash
Executable file
#!/bin/bash
|
|
|
|
if [ -n "${BUILD_DOCS}" ]; then
|
|
set -e
|
|
DOCS_IMAGE=${DOCS_IMAGE:-${IMAGE_NAME}-docs}
|
|
docker run \
|
|
--entrypoint '' \
|
|
--privileged \
|
|
-e DOCKER_GITCOMMIT=$(git rev-parse --short HEAD) \
|
|
-v $(pwd)/docs/yaml/docs:/docs \
|
|
"${IMAGE_NAME}" \
|
|
sh -c 'hack/make.sh yaml-docs-generator && bundles/latest/yaml-docs-generator/yaml-docs-generator --target /docs'
|
|
|
|
(
|
|
cd docs/yaml
|
|
docker build -t ${DOCS_IMAGE} .
|
|
docker push ${DOCS_IMAGE}
|
|
)
|
|
fi
|