mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-07-16 11:02:22 +03:00
Merge d008496389
into 285e86bf71
This commit is contained in:
commit
948ed7d59c
|
@ -68,11 +68,31 @@ jobs:
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
{%- if cookiecutter.use_docker == 'y' %}
|
{%- if cookiecutter.use_docker == 'y' %}
|
||||||
|
|
||||||
- name: Build the Stack
|
- name: Set up Docker Buildx
|
||||||
run: docker compose -f docker-compose.local.yml build django
|
uses: docker/setup-buildx-action@v3
|
||||||
|
|
||||||
- name: Build the docs
|
- name: Build and cache local backend
|
||||||
run: docker compose -f docker-compose.docs.yml build docs
|
uses: docker/bake-action@v6
|
||||||
|
with:
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
files: docker-compose.local.yml
|
||||||
|
targets: django
|
||||||
|
set: |
|
||||||
|
django.cache-from=type=gha,scope=django-cached-tests
|
||||||
|
django.cache-to=type=gha,scope=django-cached-tests,mode=max
|
||||||
|
postgres.cache-from=type=gha,scope=postgres-cached-tests
|
||||||
|
postgres.cache-to=type=gha,scope=postgres-cached-tests,mode=max
|
||||||
|
|
||||||
|
- name: Build and cache docs
|
||||||
|
uses: docker/bake-action@v6
|
||||||
|
with:
|
||||||
|
push: false
|
||||||
|
load: true
|
||||||
|
files: docker-compose.docs.yml
|
||||||
|
set: |
|
||||||
|
docs.cache-from=type=gha,scope=cached-docs
|
||||||
|
docs.cache-to=type=gha,scope=cached-docs,mode=max
|
||||||
|
|
||||||
- name: Check DB Migrations
|
- name: Check DB Migrations
|
||||||
run: docker compose -f docker-compose.local.yml run --rm django python manage.py makemigrations --check
|
run: docker compose -f docker-compose.local.yml run --rm django python manage.py makemigrations --check
|
||||||
|
|
Loading…
Reference in New Issue
Block a user