Skip to content

Commit

Permalink
clean local images before test (opea-project#471)
Browse files Browse the repository at this point in the history
* clean test images before test

Signed-off-by: chensuyue <[email protected]>

* add --no-cache for image build

Signed-off-by: chensuyue <[email protected]>

---------

Signed-off-by: chensuyue <[email protected]>
  • Loading branch information
chensuyue authored and sharanshirodkar7 committed Sep 3, 2024
1 parent 882d8ce commit 8898bb1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pr-microservice-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
run: |
sudo rm -rf ${{github.workspace}}/*
docker system prune -f
docker rmi $(docker images --filter reference="*/*:comps" -q) || true
- name: Checkout out Repo
uses: actions/checkout@v4
Expand Down
4 changes: 2 additions & 2 deletions tests/test_asr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ip_address=$(hostname -I | awk '{print $1}')
function build_docker_images() {
cd $WORKPATH
echo $(pwd)
docker build -t opea/whisper:comps -f comps/asr/whisper/Dockerfile .
docker build -t opea/asr:comps -f comps/asr/Dockerfile .
docker build --no-cache -t opea/whisper:comps -f comps/asr/whisper/Dockerfile .
docker build --no-cache -t opea/asr:comps -f comps/asr/Dockerfile .
}

function start_service() {
Expand Down
4 changes: 2 additions & 2 deletions tests/test_tts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ ip_address=$(hostname -I | awk '{print $1}')
function build_docker_images() {
cd $WORKPATH
echo $(pwd)
docker build -t opea/speecht5:comps -f comps/tts/speecht5/Dockerfile .
docker build -t opea/tts:comps -f comps/tts/Dockerfile .
docker build --no-cache -t opea/speecht5:comps -f comps/tts/speecht5/Dockerfile .
docker build --no-cache -t opea/tts:comps -f comps/tts/Dockerfile .
}

function start_service() {
Expand Down

0 comments on commit 8898bb1

Please sign in to comment.