fix(ci): validate tailwind output without host bind mount
All checks were successful
CI / nightly-e2e (pull_request) Has been skipped
CI / ci (pull_request) Successful in 1m21s

This commit is contained in:
Mark
2026-02-28 16:47:58 +00:00
parent 29e3589b1a
commit ebddb6c904
2 changed files with 8 additions and 8 deletions

View File

@@ -48,15 +48,15 @@ jobs:
- name: Tailwind build (assert generated diff is clean) - name: Tailwind build (assert generated diff is clean)
run: | run: |
docker run --rm \ docker run --name ci-tailwind \
--network container:ci-postgres \ --network container:ci-postgres \
-v "$PWD:/app" \
-w /app \
-e SECRET_KEY=ci-secret-key \ -e SECRET_KEY=ci-secret-key \
-e DATABASE_URL=postgres://nohype:nohype@127.0.0.1:5432/nohype \ -e DATABASE_URL=postgres://nohype:nohype@127.0.0.1:5432/nohype \
"$CI_IMAGE" \ "$CI_IMAGE" \
sh -lc "python manage.py tailwind install --no-input && python manage.py tailwind build" 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 - name: Remove PostgreSQL
if: always() if: always()

View File

@@ -48,15 +48,15 @@ jobs:
- name: Tailwind build (assert generated diff is clean) - name: Tailwind build (assert generated diff is clean)
run: | run: |
docker run --rm \ docker run --name ci-tailwind \
--network container:ci-postgres \ --network container:ci-postgres \
-v "$PWD:/app" \
-w /app \
-e SECRET_KEY=ci-secret-key \ -e SECRET_KEY=ci-secret-key \
-e DATABASE_URL=postgres://nohype:nohype@127.0.0.1:5432/nohype \ -e DATABASE_URL=postgres://nohype:nohype@127.0.0.1:5432/nohype \
"$CI_IMAGE" \ "$CI_IMAGE" \
sh -lc "python manage.py tailwind install --no-input && python manage.py tailwind build" 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 - name: Remove PostgreSQL
if: always() if: always()