From aeaa6b9d0b2a21478f7608f833d46f129a20ab66 Mon Sep 17 00:00:00 2001 From: sarayourfriend <24264157+sarayourfriend@users.noreply.github.com> Date: Thu, 10 Nov 2022 11:09:08 +1100 Subject: [PATCH] Simplify CI collectstatic step --- .github/workflows/ci_cd.yml | 4 ---- justfile | 2 +- 2 files changed, 1 insertion(+), 5 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index 792b40126..154846914 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -95,10 +95,6 @@ jobs: docker load --input /tmp/api/api.tar docker load --input /tmp/ingestion_server/ingestion_server.tar - - name: Start API, ingest and index test data - # Is this necessary for collectstatic? - run: just up - - name: collectstatic run: just collectstatic diff --git a/justfile b/justfile index f46a47d57..f1049e0ce 100644 --- a/justfile +++ b/justfile @@ -231,7 +231,7 @@ ipython: just dj shell # Run `collectstatic` to prepare for building the `nginx` Dockerfile target. -@collectstatic: +@collectstatic: _api-up # The `STATIC_ROOT` setting is relative to the directory in which the Django # container runs (i.e., the `api` directory at the root of the repository). # The resulting output will be at `api/static` and is git ignored for convenience.