forked from phoenix/litellm-mirror
(ci/cd) test
This commit is contained in:
parent
61e55e216a
commit
da98070135
1 changed files with 20 additions and 11 deletions
|
@ -9,17 +9,17 @@ jobs:
|
||||||
- checkout
|
- checkout
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Trigger Github Action for new Docker Container
|
name: test-release
|
||||||
command: |
|
command: |
|
||||||
echo "Install TOML package."
|
echo "Install TOML package."
|
||||||
python3 -m pip install toml
|
python -m pip install toml
|
||||||
VERSION=$(python3 -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])")
|
VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])")
|
||||||
echo "LiteLLM Version ${VERSION}"
|
echo "LiteLLM Version ${VERSION}"
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Accept: application/vnd.github.v3+json" \
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||||
"https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \
|
"https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \
|
||||||
-d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"${VERSION}\"}}"
|
-d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"${VERSION}\"}}"
|
||||||
|
|
||||||
- run:
|
- run:
|
||||||
name: Check if litellm dir was updated or if pyproject.toml was modified
|
name: Check if litellm dir was updated or if pyproject.toml was modified
|
||||||
|
@ -156,6 +156,15 @@ jobs:
|
||||||
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||||
"https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \
|
"https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \
|
||||||
-d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"${VERSION}\"}}"
|
-d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"${VERSION}\"}}"
|
||||||
|
echo "Install TOML package."
|
||||||
|
python -m pip install toml
|
||||||
|
VERSION=$(python -c "import toml; print(toml.load('pyproject.toml')['tool']['poetry']['version'])")
|
||||||
|
echo "LiteLLM Version ${VERSION}"
|
||||||
|
curl -X POST \
|
||||||
|
-H "Accept: application/vnd.github.v3+json" \
|
||||||
|
-H "Authorization: Bearer $GITHUB_TOKEN" \
|
||||||
|
"https://api.github.com/repos/BerriAI/litellm/actions/workflows/ghcr_deploy.yml/dispatches" \
|
||||||
|
-d "{\"ref\":\"main\", \"inputs\":{\"tag\":\"${VERSION}\"}}"
|
||||||
|
|
||||||
workflows:
|
workflows:
|
||||||
version: 2
|
version: 2
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue