From 71c8995cd22bd58ce191ec02f0baacda2ec6c11e Mon Sep 17 00:00:00 2001 From: ZePan110 Date: Thu, 7 Nov 2024 23:20:55 +0800 Subject: [PATCH] Fix path Signed-off-by: ZePan110 --- .github/workflows/_get-image-list.yml | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/_get-image-list.yml b/.github/workflows/_get-image-list.yml index aa6192df05..0f3dd169d1 100644 --- a/.github/workflows/_get-image-list.yml +++ b/.github/workflows/_get-image-list.yml @@ -41,11 +41,7 @@ jobs: services=($(echo ${{ inputs.services }} | tr ',' ' ')) for service in ${services[@]} do - if [[ "${{ inputs.mode }}" == "CD" ]]; then - docker_compose_yml=${{ github.workspace }}/.github/workflows/docker/compose/${service}-compose-cd.yaml - else - docker_compose_yml=${{ github.workspace }}/.github/workflows/docker/compose/${service}-compose.yaml - fi + docker_compose_yml=${{ github.workspace }}/.github/workflows/docker/compose/${service}-compose.yaml if [ -f "$docker_compose_yml" ]; then images=$(cat $docker_compose_yml | yq -r '.[]' | jq 'keys' | jq -c '.') image_list=$(echo ${image_list} | jq -s '.[0] + .[1] | unique' - <(echo ${images}))