Weekly index (#1972)

* feat: add build to generate web index of official notebooks

* fix: review comments

* fix: store results

* fix: store results

* fix: --steps

* fix: --steps

* fix: moved to its own dir
This commit is contained in:
Andrew Ferlitsch
2023-06-16 18:26:54 +00:00
committed by GitHub
parent ec6ba9ecf0
commit b502254a10
@@ -1,10 +1,4 @@
steps:
# Check the Python version
- name: ${_PYTHON_IMAGE}
entrypoint: /bin/sh
args:
- -c
- python3 .cloud-build/CheckPythonVersion.py -q
# Fetch full repo for diff purposes
- name: gcr.io/cloud-builders/git
args: [fetch, --unshallow, --quiet]
@@ -21,8 +15,9 @@ steps:
- -c
- |
. workspace/env/bin/activate &&
python3 notebooks/notebook_template_review.py --web --title -steps --desc --linkback --notebook-dir=notebooks/official >${_GCS_ARTIFACTS_BUCKET}/web.html
python3 notebooks/notebook_template_review.py --web --title --steps --desc --linkback --notebook-dir=notebooks/official >web.html
artifacts:
objects:
location: ${_GCS_ARTIFACTS_BUCKET}/web.html
location: gs://${_GCS_ARTIFACTS_BUCKET}/webdoc
paths: ['web.html']
timeout: 86400s