From ede82299e1f45c6d16c7c7b4bb901ef1bdd3e601 Mon Sep 17 00:00:00 2001 From: snake <164011252@qq.com> Date: Tue, 12 Nov 2024 18:14:31 +0800 Subject: [PATCH] print context var --- .github/workflows/build-push.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index af4f19bdbc..24a91194cc 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -46,14 +46,20 @@ jobs: steps: - name: print context var uses: actions/checkout@v4 - - name: print + - name: print one run: | echo "Commit ID: ${{ github.sha }}" echo "IMAGEHASH=${{ github.sha }}" >> $GITHUB_ENV - echo "IMAGENAME={\"kind\":\"deployments\",\"namespace\":\"dify\",\"name\":\"dify-api\",\"images\":{\"langgenius/dify-api\":\"langgenius/dify-api:${{ env.IMAGEHASH }}\"}}" >> $GITHUB_ENV + - name: print two + run: | echo "hash: ${{ env.IMAGEHASH }}" + echo "IMAGENAME={\"kind\":\"deployments\",\"namespace\":\"dify\",\"name\":\"dify-api\",\"images\":{\"langgenius/dify-api\":\"langgenius/dify-api:$IMAGEHASH\"}}" >> $GITHUB_ENV + - name: print three + run: | echo "name: ${{ env.IMAGENAME }}" echo "CURLCOMMAND=curl -X PUT -H \"content-type: application/json\" -H \"Cookie: KuboardUsername=admin; KuboardAccessKey=pwmfkfbbrxr4.mesxici5nbnfamxkjfe43kn33shba8nj\" -d ${{ env.IMAGENAME }} \"https://plugin-kuboard.dify.dev/kuboard-api/cluster/dify-plugin-1/kind/CICDApi/admin/resource/updateImageTag\"" >> $GITHUB_ENV + - name: print four + run: | echo "cmd: ${{ env.CURLCOMMAND }}" - name: Prepare