Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
guillevalin committed Jan 30, 2025
1 parent a083e71 commit e01c208
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build_tools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,19 @@ on:
workflow_dispatch:
inputs:
node_version:
description: 'Shinkai Node version to use (e.g. 0.9.7)'
description: 'Shinkai Node version to use (e.g. 0.9.8)'
required: true
type: string
default: "0.9.7"
default: "0.9.8"
use_dev_prefix:
description: 'Use dev prefix for download URL (e.g. https://download.shinkai.com/dev-tools-0.9.7)'
description: 'Use dev prefix for download URL (e.g. https://download.shinkai.com/dev-tools-0.9.7). If false, it will build for production (e.g. https://download.shinkai.com/tools-0.9.7)'
required: true
type: boolean
default: true
have_run_tests:
description: 'Have you run tests successfully?'
required: true
type: boolean
default: false

jobs:
build_tools:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ on:
workflow_dispatch:
inputs:
node_version:
description: 'Shinkai Node version to use (e.g. 0.9.7)'
description: 'Shinkai Node version to use (e.g. 0.9.8)'
required: true
type: string
default: "0.9.7"
default: "0.9.8"

jobs:
run_tests:
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
SHINKAI_STORE_ADDR: "https://shinkai-store-302883622007.us-central1.run.app"
SHINKAI_STORE_TOKEN: ${{ secrets.SHINKAI_STORE_TOKEN }}
USE_DOCKER: true
SHINKAI_NODE_IMAGE: "dcsparkdevops/shinkai-node:${{ inputs.node_version || 'latest' }}"
SHINKAI_NODE_IMAGE: "dcsparkdevops/shinkai-node:${{ inputs.node_version || 'debug-latest' }}"
run: |
./scripts/run_node.sh &
timeout 60 bash -c 'until curl -s --location "$SHINKAI_NODE_ADDR/v2/health_check" | jq -e ".status == \"ok\"" > /dev/null; do sleep 1; done'
Expand Down

0 comments on commit e01c208

Please sign in to comment.