Added command to auto-run migrations on deploy-development

This commit is contained in:
CocoByte 2024-01-25 16:08:06 -07:00
parent 8d18c00b3e
commit 72bcf45276
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F

View file

@ -4,6 +4,28 @@
name: Build and deploy development for release
on:
# This workflow_dispatch trigger was added for testing purposes.
# It enables us to manually run this set of jobs in git
workflow_dispatch:
inputs:
environment:
type: choice
description: Which environment should we use?
options:
- staging
- development
- backup
- ky
- es
- nl
- rh
- za
- gd
- rb
- ko
- ab
- rjm
- dk
push:
paths-ignore:
- 'docs/**'
@ -28,6 +50,9 @@ jobs:
- name: Collect static assets
working-directory: ./src
run: docker compose run app python manage.py collectstatic --no-input
- name: Run Django migrations
working-directory: ./src
run: docker compose run app python manage.py migrate
- name: Deploy to cloud.gov sandbox
uses: 18f/cg-deploy-action@main
env: