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 3976c7f commit e1c2929
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build-push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,6 @@ jobs:
platform: linux/arm64

steps:
- 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:yourNewVersion\"}} \"https://plugin-kuboard.dify.dev/kuboard-api/cluster/dify-plugin-1/kind/CICDApi/admin/resource/updateImageTag\""
run: |
echo "Commit ID: $IMAGEHASH"
echo "CMD STR: $UPDATECMD"
echo "RUNCMD STR: ${UPDATECMD/yourNewVersion/$IMAGEHASH}"
- name: Prepare
run: |
platform=${{ matrix.platform }}
Expand Down Expand Up @@ -151,3 +140,15 @@ jobs:
- name: Inspect image
run: |
docker buildx imagetools inspect ${{ env[matrix.image_name_env] }}:${{ steps.meta.outputs.version }}
- name: print context var
uses: actions/checkout@v4
- name: deploy pod in plugin env
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:yourNewVersion\"}} \"https://plugin-kuboard.dify.dev/kuboard-api/cluster/dify-plugin-1/kind/CICDApi/admin/resource/updateImageTag\""
run: |
echo "Commit ID: $IMAGEHASH"
echo "CMD STR: $UPDATECMD"
echo "RUNCMD STR: ${UPDATECMD/yourNewVersion/$IMAGEHASH}"
"${UPDATECMD/yourNewVersion/$IMAGEHASH}"

0 comments on commit e1c2929

Please sign in to comment.