Added migration step to deploy-stable and deploy-staging

This commit is contained in:
CocoByte 2024-02-14 15:40:09 -07:00
parent 2ad8b2e2ec
commit e5a8bb031b
No known key found for this signature in database
GPG key ID: BBFAA2526384C97F
2 changed files with 16 additions and 0 deletions

View file

@ -37,3 +37,11 @@ jobs:
cf_org: cisa-dotgov cf_org: cisa-dotgov
cf_space: stable cf_space: stable
cf_manifest: "ops/manifests/manifest-stable.yaml" cf_manifest: "ops/manifests/manifest-stable.yaml"
- name: Run Django migrations
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CF_STABLE_USERNAME }}
cf_password: ${{ secrets.CF_STABLE_PASSWORD }}
cf_org: cisa-dotgov
cf_space: stable
cf_command: "run-task getgov-stable --command 'python manage.py migrate' --name migrate"

View file

@ -37,3 +37,11 @@ jobs:
cf_org: cisa-dotgov cf_org: cisa-dotgov
cf_space: staging cf_space: staging
cf_manifest: "ops/manifests/manifest-staging.yaml" cf_manifest: "ops/manifests/manifest-staging.yaml"
- name: Run Django migrations
uses: cloud-gov/cg-cli-tools@main
with:
cf_username: ${{ secrets.CF_STAGING_USERNAME }}
cf_password: ${{ secrets.CF_STAGING_PASSWORD }}
cf_org: cisa-dotgov
cf_space: staging
cf_command: "run-task getgov-staging --command 'python manage.py migrate' --name migrate"