mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 16:37:29 +08:00
update key
This commit is contained in:
parent
c90b5af6c1
commit
047c01b435
6
.github/workflows/template_test.yml
vendored
6
.github/workflows/template_test.yml
vendored
@ -76,6 +76,8 @@ jobs:
|
|||||||
id: tags
|
id: tags
|
||||||
run: |
|
run: |
|
||||||
echo "image_repo_path=${{ inputs.image_repo }}" >> $GITHUB_OUTPUT
|
echo "image_repo_path=${{ inputs.image_repo }}" >> $GITHUB_OUTPUT
|
||||||
|
echo "DEEPSEEK_API_KEY=${{ secrets.DEEPSEEK_API_KEY }}" >> $GITHUB_OUTPUT
|
||||||
|
echo "TAVILY_API_KEY=${{ secrets.TAVILY_API_KEY }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Docker-Compose File from Inputs
|
- name: Create Docker-Compose File from Inputs
|
||||||
id: create_compose
|
id: create_compose
|
||||||
@ -83,8 +85,8 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Load Inputs (parse JSON strings)
|
# Load Inputs (parse JSON strings)
|
||||||
$imagesJson = '${{ inputs.images }}'
|
$imagesJson = '${{ inputs.images }}'
|
||||||
$deepseekApiKey = '${{ secrets.DEEPSEEK_API_KEY }}'
|
$deepseekApiKey = "${{ steps.tags.outputs.DEEPSEEK_API_KEY }}"
|
||||||
$tavilyApiKey = '${{ secrets.TAVILY_API_KEY }}'
|
$tavilyApiKey = "${{ steps.tags.outputs.TAVILY_API_KEY }}"
|
||||||
# Substitute secrets *before* parsing JSON using environment variables
|
# Substitute secrets *before* parsing JSON using environment variables
|
||||||
# Be very careful with escaping if secrets contain special JSON characters
|
# Be very careful with escaping if secrets contain special JSON characters
|
||||||
$imagesJson = $imagesJson -replace '"DEEPSEEK_API_KEY": ""', "`"DEEPSEEK_API_KEY`": `"$deepseekApiKey`""
|
$imagesJson = $imagesJson -replace '"DEEPSEEK_API_KEY": ""', "`"DEEPSEEK_API_KEY`": `"$deepseekApiKey`""
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user