etcd change

This commit is contained in:
云乾 2025-05-09 14:19:58 +08:00
parent 5ff895d85a
commit 8ba3088302
2 changed files with 5 additions and 3 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/kubernetes/website.git
/bin/bash build.sh https://github.com/etcd-io/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/

View File

@ -56,14 +56,16 @@ after_build(){
log_info "output/docs/latest/install/index.html"
cat output/docs/latest/install/index.html
filetoto "./output"
save_return
}
cd project_dir
if cat .git/config |grep '/etcd-io/website.git' ;then
echo "匹配到 etcd"
before_build
build
after_build
cycle_sed "./output"
save_return
fi