print context var

This commit is contained in:
snake 2024-11-13 10:42:01 +08:00 committed by GitHub
parent d89ab877b7
commit 11fd02ae99
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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: |