mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-25 20:18:38 +02:00
Added command to auto-run migrations on deploy-development
This commit is contained in:
parent
8d18c00b3e
commit
72bcf45276
1 changed files with 25 additions and 0 deletions
25
.github/workflows/deploy-development.yaml
vendored
25
.github/workflows/deploy-development.yaml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue