Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Build `api` when ingestion server changes (#925)

Dhruv Bhanushali0900a4dd2fe5
diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml
index 44ab58fc0..d29e3ef86 100644
--- a/.github/workflows/ci_cd.yml
+++ b/.github/workflows/ci_cd.yml
@@ -95,6 +95,10 @@ jobs:
build_matrix["image"].append("ingestion_server")
build_matrix["include"].append({"image": "ingestion_server", "target": "ing"})
publish_matrix["image"].append("ingestion_server")
+ # The `api` image needs to be built to run the `test-api` job.
+ if "api" not in changes:
+ build_matrix["image"].append("api")
+ build_matrix["include"].append({"image": "api", "target": "api"})
if "frontend" in changes:
build_matrix["image"].append("frontend")
build_matrix["include"].append({"image": "frontend", "target": "app"})