From 079ea5cde2cd519b44dd310cac34d840fabc24e4 Mon Sep 17 00:00:00 2001 From: weyu <985695055@qq.com> Date: Sat, 26 Apr 2025 18:03:57 +0800 Subject: [PATCH] volcano fix2 --- .github/workflows/_push.yml | 2 +- libs/common.sh | 4 ++++ webs/volcano/toto.sh | 12 +++++++----- 3 files changed, 12 insertions(+), 6 deletions(-) diff --git a/.github/workflows/_push.yml b/.github/workflows/_push.yml index 43bfb79..7636864 100644 --- a/.github/workflows/_push.yml +++ b/.github/workflows/_push.yml @@ -10,6 +10,6 @@ jobs: - uses: actions/checkout@v4 - name: Push To-To-To run: | - /bin/bash build.sh https://github.com/open-telemetry/opentelemetry.io.git + /bin/bash build.sh https://github.com/volcano-sh/website.git src=`cat project_dir/ret-data|grep -v ^$|head -n 1` ./ossutil --access-key-id ${{ secrets.ALIYUN_CYG_OSS_AK }} --access-key-secret ${{ secrets.ALIYUN_CYG_OSS_SK }} --endpoint ${{ secrets.ALIYUN_CYG_OSS_ENDPOINT }} --region ${{ secrets.ALIYUN_CYG_OSS_REGION }} cp -f ${src} oss://cncfstack-website/ \ No newline at end of file diff --git a/libs/common.sh b/libs/common.sh index 7a90574..8bf224d 100644 --- a/libs/common.sh +++ b/libs/common.sh @@ -50,6 +50,10 @@ install_hugo(){ fi } +install_hugo_v57_2(){ + install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.57.2/hugo_extended_0.57.2_Linux-64bit.tar.gz" +} + install_hugo_v65_3(){ install_hugo "https://github.com/gohugoio/hugo/releases/download/v0.65.3/hugo_extended_0.65.3_Linux-64bit.tar.gz" } diff --git a/webs/volcano/toto.sh b/webs/volcano/toto.sh index 1cf18c2..d96777a 100644 --- a/webs/volcano/toto.sh +++ b/webs/volcano/toto.sh @@ -2,17 +2,18 @@ source libs/common.sh before_build(){ echo "npm install" - npm install - echo "install hugo" - install_hugo_v120 + install_hugo_v57_2 + install_postcss + npm install # 添加网站访问统计 echo '' >> layouts/partials/favicons.html # 文件语法错误,无法编译 - rm -f content/zh/blog/* - rm -f content/en/blog/* + # rm -f content/zh/blog/* + # rm -f content/en/blog/* + } build(){ @@ -21,6 +22,7 @@ build(){ ./hugo \ --destination ./website-site \ --cleanDestinationDir \ + --environment production \ --buildFuture \ --noBuildLock \ --minify \