From 7554c0eda69f899e4555344294a443bc72757755 Mon Sep 17 00:00:00 2001 From: Mikayla Thompson Date: Wed, 19 Jun 2024 15:30:15 -0600 Subject: [PATCH 1/3] Add step to delete all `migrations` images Signed-off-by: Mikayla Thompson --- .github/workflows/CI.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 8c2eb9e44..aa29c7ebd 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -132,6 +132,11 @@ 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 From 17643135c0d0bff9bc8bc98f2af21863ecd19c17 Mon Sep 17 00:00:00 2001 From: Mikayla Thompson Date: Wed, 19 Jun 2024 15:32:52 -0600 Subject: [PATCH 2/3] Add change to a Dockerfile to test with a fresh cache Signed-off-by: Mikayla Thompson --- .github/workflows/CI.yml | 1 - FetchMigration/Dockerfile | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index aa29c7ebd..17b6932bb 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -137,7 +137,6 @@ jobs: 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 defaults: 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 From 0501b56c6e98d92f8f284251b385232096f1c4d8 Mon Sep 17 00:00:00 2001 From: Mikayla Thompson Date: Wed, 19 Jun 2024 16:02:22 -0600 Subject: [PATCH 3/3] empty commit for testing Signed-off-by: Mikayla Thompson