coredns fix

This commit is contained in:
云乾 2025-05-19 14:10:03 +08:00
parent 6524296344
commit 95f5a2062f
2 changed files with 8 additions and 6 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/letsencrypt/website.git
/bin/bash build.sh https://github.com/coredns/coredns.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

@ -5,7 +5,7 @@ before_build(){
install_postcss
log_info "添加网站访问统计"
echo '<script defer src="https://umami.cncfstack.com/script.js" data-website-id="9f78fcf9-90dc-4597-8fb8-a2b26aaf7656"></script>' >> layouts/partials/favicons.html
echo '<script defer src="https://umami.cncfstack.com/script.js" data-website-id="9f78fcf9-90dc-4597-8fb8-a2b26aaf7656"></script>' >> themes/coredns/layouts/partials/favicon.html
}
@ -45,13 +45,15 @@ save_return(){
}
after_build(){
filetoto "./output"
save_return
}
cd project_dir && log_info "进入到项目代码的目录中,后续的所有动作都是在项目的代码根目录下执行"
if cat .git/config |grep '/coredns/coredns.io.git' ;then
echo "=============================================> 匹配到 coredns"
log_info "匹配到 coredns"
before_build
build
find_and_sed_v2 "./output"
save_return
after_build
fi