print context var

This commit is contained in:
snake 2024-11-12 18:14:31 +08:00 committed by GitHub
parent f031eeb473
commit ede82299e1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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