Corrective implementation of implementation.md (containerized Django/Wagtail) #3
@@ -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()
|
||||||
|
|||||||
8
.github/workflows/ci.yml
vendored
8
.github/workflows/ci.yml
vendored
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user