From ad8ab8ee8c07eef716100326a8a519731ed9ea6e Mon Sep 17 00:00:00 2001 From: leehk Date: Thu, 17 Apr 2025 15:29:41 +0800 Subject: [PATCH] add container_name --- .github/workflows/template_test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/template_test.yml b/.github/workflows/template_test.yml index c5cb4a8..bf9eb4a 100644 --- a/.github/workflows/template_test.yml +++ b/.github/workflows/template_test.yml @@ -95,9 +95,10 @@ jobs: # Generate services Section Based on Images inputs foreach ($img in $images) { - $serviceName = $img.name - $svc = @{} - $svc.image = "${{ steps.tags.outputs.image_repo_path }}/$($serviceName):${{ env.TAG }}" # Use run_id tag + $serviceName = $img.name + $svc = @{} + $svc.container_name = $serviceName + $svc.image = "${{ steps.tags.outputs.image_repo_path }}/$($serviceName):${{ env.TAG }}" # Use run_id tag if ($img.depends_on) { $svc.depends_on = $img.depends_on