mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-27 13:06:30 +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
|
name: Build and deploy development for release
|
||||||
|
|
||||||
on:
|
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:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'docs/**'
|
- 'docs/**'
|
||||||
|
@ -28,6 +50,9 @@ jobs:
|
||||||
- name: Collect static assets
|
- name: Collect static assets
|
||||||
working-directory: ./src
|
working-directory: ./src
|
||||||
run: docker compose run app python manage.py collectstatic --no-input
|
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
|
- name: Deploy to cloud.gov sandbox
|
||||||
uses: 18f/cg-deploy-action@main
|
uses: 18f/cg-deploy-action@main
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue