You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@yunikorn.apache.org by wi...@apache.org on 2023/05/10 01:04:37 UTC
[yunikorn-site] branch master updated: [YUNIKORN-1527] Add website build to PR workflow (#286)
This is an automated email from the ASF dual-hosted git repository.
wilfreds pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/yunikorn-site.git
The following commit(s) were added to refs/heads/master by this push:
new 667f1bdf8 [YUNIKORN-1527] Add website build to PR workflow (#286)
667f1bdf8 is described below
commit 667f1bdf86ed9ee437847e2b3521d4eb703434b8
Author: 0yukali0 <a0...@gmail.com>
AuthorDate: Wed May 10 11:04:16 2023 +1000
[YUNIKORN-1527] Add website build to PR workflow (#286)
Closes: #286
Signed-off-by: Wilfred Spiegelenburg <wi...@apache.org>
---
.github/workflows/pre-commit.yml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 984e858a5..ed02ea6a2 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -30,3 +30,7 @@ jobs:
fetch-depth: 2
- name: Check license
run: ./check_license.sh
+ - name: Build the site image
+ run: |
+ NODE_VERSION=$(cat .nvmrc) && NODE_VERSION=${NODE_VERSION:-16.14}
+ docker build -t yunikorn/yunikorn-website:2.0.0 . --build-arg NODE_VERSION=${NODE_VERSION}