mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-09 17:03:47 +08:00
update
This commit is contained in:
parent
d5e284be3e
commit
282266174e
10
.github/workflows/template_test.yml
vendored
10
.github/workflows/template_test.yml
vendored
@ -71,6 +71,12 @@ jobs:
|
|||||||
sudo rm -rf "/usr/local/share/boost"
|
sudo rm -rf "/usr/local/share/boost"
|
||||||
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
|
||||||
|
|
||||||
|
- name: Define Image Repo tags
|
||||||
|
# Define tags consistently using inputs
|
||||||
|
id: tags
|
||||||
|
run: |
|
||||||
|
echo "image_repo_path=${{ inputs.image_repo }}" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Create Docker-Compose File from Inputs
|
- name: Create Docker-Compose File from Inputs
|
||||||
id: create_compose
|
id: create_compose
|
||||||
shell: pwsh
|
shell: pwsh
|
||||||
@ -97,7 +103,7 @@ jobs:
|
|||||||
foreach ($img in $images) {
|
foreach ($img in $images) {
|
||||||
$serviceName = $img.name
|
$serviceName = $img.name
|
||||||
$svc = @{}
|
$svc = @{}
|
||||||
$svc.image = "$env:IMAGE_REPO/$($serviceName):${{ env.TAG }}" # Use run_id tag
|
$svc.image = "${{ steps.tags.outputs.image_repo_path }}/$($serviceName):${{ env.TAG }}" # Use run_id tag
|
||||||
|
|
||||||
if ($img.depends_on) {
|
if ($img.depends_on) {
|
||||||
$svc.depends_on = $img.depends_on
|
$svc.depends_on = $img.depends_on
|
||||||
@ -177,7 +183,7 @@ jobs:
|
|||||||
$ENV_ARGS \
|
$ENV_ARGS \
|
||||||
-v "$STAGING_DIR:$RESULTS_PATH" \
|
-v "$STAGING_DIR:$RESULTS_PATH" \
|
||||||
--rm \
|
--rm \
|
||||||
"${{ env.IMAGE_REPO }}/${{ inputs.testContainerName }}:${{ github.run_id }}" \
|
"${{ steps.tags.outputs.image_repo_path }}/${{ inputs.testContainerName }}:${{ github.run_id }}" \
|
||||||
"$test_dir"
|
"$test_dir"
|
||||||
# Add error handling if needed (e.g., exit script if a test run fails)
|
# Add error handling if needed (e.g., exit script if a test run fails)
|
||||||
if [ $? -ne 0 ]; then
|
if [ $? -ne 0 ]; then
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user