From ebddb6c90475b2c78760b65100f359a838754df4 Mon Sep 17 00:00:00 2001 From: Mark <162816078+markashton480@users.noreply.github.com> Date: Sat, 28 Feb 2026 16:47:58 +0000 Subject: [PATCH] fix(ci): validate tailwind output without host bind mount --- .gitea/workflows/ci.yml | 8 ++++---- .github/workflows/ci.yml | 8 ++++---- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 3d10c36..360e702 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -48,15 +48,15 @@ jobs: - name: Tailwind build (assert generated diff is clean) run: | - docker run --rm \ + docker run --name ci-tailwind \ --network container:ci-postgres \ - -v "$PWD:/app" \ - -w /app \ -e SECRET_KEY=ci-secret-key \ -e DATABASE_URL=postgres://nohype:nohype@127.0.0.1:5432/nohype \ "$CI_IMAGE" \ sh -lc "python manage.py tailwind install --no-input && python manage.py tailwind build" - git diff --exit-code -- theme/static/css/styles.css + docker cp ci-tailwind:/app/theme/static/css/styles.css /tmp/ci-styles.css + docker rm -f ci-tailwind + cmp -s theme/static/css/styles.css /tmp/ci-styles.css - name: Remove PostgreSQL if: always() diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d10c36..360e702 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -48,15 +48,15 @@ jobs: - name: Tailwind build (assert generated diff is clean) run: | - docker run --rm \ + docker run --name ci-tailwind \ --network container:ci-postgres \ - -v "$PWD:/app" \ - -w /app \ -e SECRET_KEY=ci-secret-key \ -e DATABASE_URL=postgres://nohype:nohype@127.0.0.1:5432/nohype \ "$CI_IMAGE" \ sh -lc "python manage.py tailwind install --no-input && python manage.py tailwind build" - git diff --exit-code -- theme/static/css/styles.css + docker cp ci-tailwind:/app/theme/static/css/styles.css /tmp/ci-styles.css + docker rm -f ci-tailwind + cmp -s theme/static/css/styles.css /tmp/ci-styles.css - name: Remove PostgreSQL if: always()