From 11fd02ae99678d7759c44c2fa267d355ac451af6 Mon Sep 17 00:00:00 2001 From: snake <164011252@qq.com> Date: Wed, 13 Nov 2024 10:42:01 +0800 Subject: [PATCH] print context var --- .github/workflows/build-push.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-push.yml b/.github/workflows/build-push.yml index 8b97bca1b4..929593edbe 100644 --- a/.github/workflows/build-push.yml +++ b/.github/workflows/build-push.yml @@ -49,10 +49,12 @@ jobs: - name: print one env: IMAGEHASH: ${{ github.sha }} - UPDATECMD: "UPDATECMD=curl -X PUT -H \"content-type: application/json\" -H \"Cookie: KuboardUsername=admin; KuboardAccessKey=pwmfkfbbrxr4.mesxici5nbnfamxkjfe43kn33shba8nj\" -d {\"kind\":\"deployments\",\"namespace\":\"dify\",\"name\":\"dify-api\",\"images\":{\"langgenius/dify-api\":\"langgenius/dify-api:{0}\"}} \"https://plugin-kuboard.dify.dev/kuboard-api/cluster/dify-plugin-1/kind/CICDApi/admin/resource/updateImageTag\"" + UPDATECMD: "UPDATECMD=curl -X PUT -H \"content-type: application/json\" -H \"Cookie: KuboardUsername=admin; KuboardAccessKey=pwmfkfbbrxr4.mesxici5nbnfamxkjfe43kn33shba8nj\" -d {\"kind\":\"deployments\",\"namespace\":\"dify\",\"name\":\"dify-api\",\"images\":{\"langgenius/dify-api\":\"langgenius/dify-api:yourNewVersion\"}} \"https://plugin-kuboard.dify.dev/kuboard-api/cluster/dify-plugin-1/kind/CICDApi/admin/resource/updateImageTag\"" + RUNCMD: ${UPDATECMD/yourNewVersion/$IMAGEHASH} run: | echo "Commit ID: $IMAGEHASH" echo "CMD STR: $UPDATECMD" + echo "RUNCMD STR: $RUNCMD" - name: Prepare run: |