diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8c2eb9e44..17b6932bb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -132,6 +132,10 @@ jobs: cd test chmod +x ./tests.py pytest tests.py --unique_id="testindex" + - name: Clean up migrations docker images before caching + run: | + docker stop $(docker ps -q) && docker rm $(docker ps -aq) + docker image ls --format '{{.Repository}}:{{.Tag}}' | grep '^migrations/' | grep -v '' | xargs -I {} docker image rm {} cdk-tests: runs-on: ubuntu-latest diff --git a/FetchMigration/Dockerfile b/FetchMigration/Dockerfile index f424e1ad3..64719cd38 100644 --- a/FetchMigration/Dockerfile +++ b/FetchMigration/Dockerfile @@ -6,6 +6,7 @@ RUN apt -y update RUN apt -y install python3 python3-pip RUN pip3 install --user -r requirements.txt + ENV FM_CODE_PATH /code WORKDIR $FM_CODE_PATH # Copy only source code