print context var

This commit is contained in:
snake 2024-11-12 18:38:46 +08:00 committed by GitHub
parent 153f3b77ec
commit 370736cad9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -56,11 +56,11 @@ jobs:
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: ${{ fromJSON(env.IMAGENAME) }}"
echo "CURLCOMMAND=curl -X PUT -H \"content-type: application/json\" -H \"Cookie: KuboardUsername=admin; KuboardAccessKey=pwmfkfbbrxr4.mesxici5nbnfamxkjfe43kn33shba8nj\" -d ${{ fromJSON(env.IMAGENAME) }} \"https://plugin-kuboard.dify.dev/kuboard-api/cluster/dify-plugin-1/kind/CICDApi/admin/resource/updateImageTag\"" >> $GITHUB_ENV
echo "name: ${{ toJson(env.IMAGENAME) }}"
echo "CURLCOMMAND=curl -X PUT -H \"content-type: application/json\" -H \"Cookie: KuboardUsername=admin; KuboardAccessKey=pwmfkfbbrxr4.mesxici5nbnfamxkjfe43kn33shba8nj\" -d ${{ toJSON(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: ${{ fromJSON(env.CURLCOMMAND) }}"
echo "cmd: ${{ toJSON(env.CURLCOMMAND) }}"
- name: Prepare
run: |