Skip to content

Commit

Permalink
Fix path
Browse files Browse the repository at this point in the history
Signed-off-by: ZePan110 <[email protected]>
  • Loading branch information
ZePan110 committed Nov 7, 2024
1 parent 28c2a9f commit 0a108e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/_get-image-list.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}))
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/scripts/get_cicd_list.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@

WORKPATH=$PWD
# echo "mode is: "$1 "compose file is: "$2
all_ci_yaml=$(find $WORKPATH/GenAIExamples -name "build.yaml")
git clone https://github.com/opea-project/GenAIExamples.git
all_ci_yaml=$(find GenAIExamples -name "build.yaml")
all_ci_lists=$(grep '^[[:space:]]\{2\}[a-zA-Z0-9_-]\+:' $all_ci_yaml | awk -F: '{print$2}' | sed 's/^[[:space:]]\+//' | tr '\n' ',' | sed 's/,$//')

all_lists=$(grep '^[[:space:]]\{2\}[a-zA-Z0-9_-]\+:' $2 | sed 's/^[[:space:]]\{2\}\([a-zA-Z0-9_-]\+\):.*/\1/' | tr '\n' ',' | sed 's/,$//')
Expand Down

0 comments on commit 0a108e8

Please sign in to comment.