Skip to content

Commit

Permalink
print context var
Browse files Browse the repository at this point in the history
  • Loading branch information
snakevash authored Nov 13, 2024
1 parent 0e541da commit a31693c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,11 @@ jobs:
- name: print context var
uses: actions/checkout@v4
- 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\""
run: |
echo "Commit ID: ${{ github.sha }}"
echo "IMAGEHASH=${{ github.sha }}"
echo "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\""
echo "Commit ID: $IMAGEHASH"
echo ${{ format(${UPDATECMD},${IMAGEHASH}) }}
- name: Prepare
Expand Down

0 comments on commit a31693c

Please sign in to comment.