fix istio

This commit is contained in:
weyu 2025-04-26 08:39:24 +08:00
parent b0f89fda8b
commit 1db6949006
2 changed files with 6 additions and 5 deletions

View File

@ -10,6 +10,6 @@ jobs:
- uses: actions/checkout@v4
- name: Push To-To-To
run: |
/bin/bash build.sh https://github.com/goharbor/website.git
/bin/bash build.sh https://github.com/istio/istio.io.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/

View File

@ -19,7 +19,6 @@ build(){
--cleanDestinationDir \
--minify \
--gc \
--enableGitInfo \
--baseURL https://istio.website.cncfstack.com
}
@ -42,13 +41,15 @@ save_return(){
echo "project_dir/${tarfile}" > ret-data
}
after_build(){
filetoto "./output"
save_return
}
cd project_dir
if cat .git/config |grep '/istio/istio.io.git' ;then
echo "匹配到 istio"
before_build
build
find_and_sed_v2 "./output"
save_return
after_build
fi