Skip to content
This repository was archived by the owner on Jun 22, 2025. It is now read-only.

Commit 10215cf

Browse files
authored
Fix CD issues (opea-project#917)
* Add PREDICTIONGUARD_API_KEY Signed-off-by: ZePan110 <[email protected]> * Increase timeout Signed-off-by: ZePan110 <[email protected]> * Fix log name issue Signed-off-by: ZePan110 <[email protected]> * Remove useless code. Signed-off-by: ZePan110 <[email protected]> --------- Signed-off-by: ZePan110 <[email protected]>
1 parent f962882 commit 10215cf

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

.github/workflows/_run-docker-compose.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,14 +92,15 @@ jobs:
9292
GOOGLE_CSE_ID: ${{ secrets.GOOGLE_CSE_ID }}
9393
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
9494
PINECONE_KEY: ${{ secrets.PINECONE_KEY }}
95+
PREDICTIONGUARD_API_KEY: ${{ secrets.PREDICTIONGUARD_API_KEY }}
9596
service: ${{ inputs.service }}
9697
test_case: ${{ matrix.test_case }}
9798
hardware: ${{ matrix.hardware }}
9899
run: |
99100
cd ${{ github.workspace }}/tests
100-
service=$(echo "${test_case}" | cut -d'_' -f2- |cut -d'.' -f1)
101+
service=$(echo "${test_case}" | cut -d'/' -f3 | cut -d'_' -f2- |cut -d'.' -f1)
101102
echo "service=${service}" >> $GITHUB_ENV
102-
if [ -f ${test_case} ]; then timeout 30m bash ${test_case}; else echo "Test script {${test_case}} not found, skip test!"; fi
103+
if [ -f ${test_case} ]; then timeout 60m bash ${test_case}; else echo "Test script {${test_case}} not found, skip test!"; fi
103104
104105
- name: Clean up container
105106
if: cancelled() || failure()

.github/workflows/pr-dockerfile-path-scan.yaml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,6 @@ jobs:
6767
if [ -n "$Dockerfiles" ]; then
6868
for Dockerfile in $Dockerfiles; do
6969
service=$(echo "$Dockerfile" | awk -F '/' '{print $2}')
70-
if grep -q "$Dockerfile" ../GenAIExamples/**/*build.yaml*; then
71-
mode="" #CI
72-
else
73-
mode="-cd" #CD
74-
fi
75-
7670
yaml_file=${{github.workspace}}/.github/workflows/docker/compose/"$service"-compose
7771
if ! grep -q "$Dockerfile" "$yaml_file"*yaml; then
7872
echo "AR: Update $Dockerfile to .github/workflows/docker/compose/"$service"-compose.yaml. The yaml is used for release images build."

0 commit comments

Comments
 (0)