From 0102b52375ee76615edcbcc1a119b26a7baf7d0b Mon Sep 17 00:00:00 2001 From: weyu <985695055@qq.com> Date: Sat, 26 Apr 2025 16:44:48 +0800 Subject: [PATCH] spiffe --- .github/workflows/_push.yml | 2 +- webs/spiffe/toto.sh | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/_push.yml b/.github/workflows/_push.yml index 96e6a01..f189499 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/openyurtio/openyurt.io.git + /bin/bash build.sh https://github.com/spiffe/spiffe.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/ \ No newline at end of file diff --git a/webs/spiffe/toto.sh b/webs/spiffe/toto.sh index bca1036..0138690 100644 --- a/webs/spiffe/toto.sh +++ b/webs/spiffe/toto.sh @@ -49,12 +49,15 @@ save_return(){ } +after_build(){ + filetoto "./output" + save_return +} cd project_dir if cat .git/config |grep '/spiffe/spiffe.io.git' ;then echo "匹配到 spiffe" before_build build - find_and_sed_v2 "./output" - save_return + after_build fi