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()