mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-06 15:26:55 +08:00
update with fake api key
This commit is contained in:
parent
047c01b435
commit
f02bddb2eb
4
.github/workflows/build_new.yml
vendored
4
.github/workflows/build_new.yml
vendored
@ -93,8 +93,8 @@ jobs:
|
|||||||
"env": {
|
"env": {
|
||||||
"ENVIRONMENT": "dev",
|
"ENVIRONMENT": "dev",
|
||||||
"TESTING": "1",
|
"TESTING": "1",
|
||||||
"DEEPSEEK_API_KEY": "",
|
"DEEPSEEK_API_KEY": "sk-XXXXXXXXXX",
|
||||||
"TAVILY_API_KEY": ""
|
"TAVILY_API_KEY": "tvly-dev-wXXXXXX"
|
||||||
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|||||||
10
.github/workflows/template_test.yml
vendored
10
.github/workflows/template_test.yml
vendored
@ -76,8 +76,6 @@ 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
|
||||||
@ -85,12 +83,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
# Load Inputs (parse JSON strings)
|
# Load Inputs (parse JSON strings)
|
||||||
$imagesJson = '${{ inputs.images }}'
|
$imagesJson = '${{ inputs.images }}'
|
||||||
$deepseekApiKey = "${{ steps.tags.outputs.DEEPSEEK_API_KEY }}"
|
|
||||||
$tavilyApiKey = "${{ steps.tags.outputs.TAVILY_API_KEY }}"
|
|
||||||
# Substitute secrets *before* parsing JSON using environment variables
|
|
||||||
# Be very careful with escaping if secrets contain special JSON characters
|
|
||||||
$imagesJson = $imagesJson -replace '"DEEPSEEK_API_KEY": ""', "`"DEEPSEEK_API_KEY`": `"$deepseekApiKey`""
|
|
||||||
$imagesJson = $imagesJson -replace '"TAVILY_API_KEY": ""', "`"TAVILY_API_KEY`": `"$tavilyApiKey`""
|
|
||||||
|
|
||||||
Write-Host "Substituted Images JSON: $imagesJson" # Debugging - remove sensitive info if public
|
Write-Host "Substituted Images JSON: $imagesJson" # Debugging - remove sensitive info if public
|
||||||
$images = $imagesJson | ConvertFrom-Json
|
$images = $imagesJson | ConvertFrom-Json
|
||||||
@ -155,7 +147,7 @@ jobs:
|
|||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
TEST_DIRS="${{ inputs.tests }}"
|
TEST_DIRS="${{ inputs.tests }}"
|
||||||
TEST_ENVS_JSON="${{ inputs.testEnvs }}" # Get JSON array string
|
TEST_ENVS_JSON="${{ inputs.testEnvs }}"
|
||||||
RESULTS_PATH="${{ inputs.testResultsPath }}"
|
RESULTS_PATH="${{ inputs.testResultsPath }}"
|
||||||
STAGING_DIR="${{ runner.temp }}/test-results" # Use runner temp dir for results
|
STAGING_DIR="${{ runner.temp }}/test-results" # Use runner temp dir for results
|
||||||
mkdir -p "$STAGING_DIR"
|
mkdir -p "$STAGING_DIR"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user