Skip to content
Snippets Groups Projects
Verified Commit fd7eacd2 authored by Lars Bilke's avatar Lars Bilke
Browse files

[web] Use generated notebook output.

parent 2da30e6d
No related branches found
No related tags found
No related merge requests found
...@@ -18,7 +18,7 @@ preview web site: ...@@ -18,7 +18,7 @@ preview web site:
stage: build stage: build
tags: [docker] tags: [docker]
image: $WEB_IMAGE image: $WEB_IMAGE
needs: [ci_images] needs: [ci_images, "build jupyter"]
variables: variables:
HUGO_ENVIRONMENT: "staging" HUGO_ENVIRONMENT: "staging"
script: script:
...@@ -26,7 +26,7 @@ preview web site: ...@@ -26,7 +26,7 @@ preview web site:
- echo '<meta http-equiv="REFRESH" content="0;URL=web/public/index.html">' >> WebPreview.html - echo '<meta http-equiv="REFRESH" content="0;URL=web/public/index.html">' >> WebPreview.html
- cd web - cd web
- yarn - yarn
- yarn build-with-nb - yarn build
rules: rules:
- if: $CI_MERGE_REQUEST_ID - if: $CI_MERGE_REQUEST_ID
changes: changes:
...@@ -45,7 +45,7 @@ preview web site: ...@@ -45,7 +45,7 @@ preview web site:
deploy web site: deploy web site:
stage: package stage: package
image: $WEB_IMAGE image: $WEB_IMAGE
needs: [ci_images] needs: [ci_images, "build jupyter"]
rules: rules:
- if: $CI_COMMIT_TAG - if: $CI_COMMIT_TAG
- if: '$CI_COMMIT_BRANCH == "master"' - if: '$CI_COMMIT_BRANCH == "master"'
...@@ -58,7 +58,7 @@ deploy web site: ...@@ -58,7 +58,7 @@ deploy web site:
script: script:
- cd web - cd web
- yarn - yarn
- yarn build-with-nb - yarn build
- netlify deploy --prod --dir=public --site=$OGS_NETLIFY_SITE_ID - netlify deploy --prod --dir=public --site=$OGS_NETLIFY_SITE_ID
- yarn upload-index - yarn upload-index
cache: cache:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment