mirror of
https://github.com/aimingmed/aimingmed-ai.git
synced 2026-02-08 08:13:20 +08:00
replace the image repo directly
This commit is contained in:
parent
6250c66f59
commit
d175a9e37d
4
.github/workflows/template_test.yml
vendored
4
.github/workflows/template_test.yml
vendored
@ -85,7 +85,7 @@ jobs:
|
|||||||
foreach ($img in $images) {
|
foreach ($img in $images) {
|
||||||
$serviceName = $img.name
|
$serviceName = $img.name
|
||||||
$svc = @{}
|
$svc = @{}
|
||||||
$svc.image = "${{ inputs.image_repo }}/$($serviceName):${{ env.TAG }}" # Use run_id tag
|
$svc.image = "ghcr.io/$(echo $GITHUB_REPOSITORY | tr '[A-Z]' '[a-z]')/$($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
|
||||||
@ -165,7 +165,7 @@ jobs:
|
|||||||
$ENV_ARGS \
|
$ENV_ARGS \
|
||||||
-v "$STAGING_DIR:$RESULTS_PATH" \
|
-v "$STAGING_DIR:$RESULTS_PATH" \
|
||||||
--rm \
|
--rm \
|
||||||
"${{ inputs.image_repo }}/$($serviceName)/${{ inputs.testContainerName }}:${{ github.run_id }}" \
|
"ghcr.io/$(echo $GITHUB_REPOSITORY | tr '[A-Z]' '[a-z]')/$($serviceName)/${{ 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