From 8dc5e5091f81bac810b7875b222c3a1b49de0d80 Mon Sep 17 00:00:00 2001 From: weyu <985695055@qq.com> Date: Sat, 26 Apr 2025 15:14:23 +0800 Subject: [PATCH] linkerd fix3 --- .github/workflows/_push.yml | 2 +- webs/linkerd/toto.sh | 36 ++++++++++++++++++------------------ 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/.github/workflows/_push.yml b/.github/workflows/_push.yml index 3a19c02..660c1fc 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/kyverno/website.git + /bin/bash build.sh https://github.com/linkerd/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/webs/linkerd/toto.sh b/webs/linkerd/toto.sh index 2be08e0..d663746 100644 --- a/webs/linkerd/toto.sh +++ b/webs/linkerd/toto.sh @@ -5,36 +5,36 @@ before_build(){ install_hugo_v136_5 install_postcss + # 注点意文档在这个目录中 + cd linkerd.io + # 添加网站访问统计 - sed -i 's|||g' layouts/_default/baseof.html + echo '' >> ./layouts/partials/head-meta.html } + build(){ - # mkdir output - # hugo \ - # --environment production \ - # --destination ./output \ - # --cleanDestinationDir \ - # --minify \ - # --gc \ - # --enableGitInfo \ - # --baseURL https://linkerd.website.cncfstack.com + hugo \ + --environment production \ + --cleanDestinationDir \ + --minify \ + --gc \ + --enableGitInfo \ + --baseURL https://linkerd.website.cncfstack.com - make production-build - } save_return(){ - ls -lha - pwd - echo "${workdir}/output&oss://cncfstack-istio" > ${workdir}/ret-data + # ls -lha + # pwd + # echo "project_dir/output&oss://cncfstack-istio" > project_dir/ret-data # 这行很重要,在其他关联项目中,文件名称必须要匹配 - tarfile="kyverno.tgz" + tarfile="linkerd.tgz" - # 进入到site目录后进行打包,这样是为了便于部署时解压 + # 进入到目录后进行打包,这样是为了便于部署时解压 tar -czf ${tarfile} -C public . if [ ! -s ${tarfile} ];then @@ -56,7 +56,7 @@ after_build(){ cd project_dir if cat .git/config |grep '/linkerd/website.git' ;then - echo "匹配到 istio" + echo "匹配到 linkerd" before_build build after_build