-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1872 from cisagov/dk/1770-database-cache
Issue #1770: dbcache and multiple gunicorn workers
- Loading branch information
Showing
5 changed files
with
57 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# This workflow can be run from the CLI for any environment | ||
# gh workflow run createcachetable.yaml -f environment=ENVIRONMENT | ||
# OR | ||
# cf run-task getgov-ENVIRONMENT --command 'python manage.py createcachetable' --name createcachetable | ||
|
||
name: Create cache table | ||
run-name: Create cache table for ${{ github.event.inputs.environment }} | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
environment: | ||
type: choice | ||
description: Which environment should we create cache table for? | ||
options: | ||
- stable | ||
- staging | ||
- development | ||
- backup | ||
- ky | ||
- es | ||
- nl | ||
- rh | ||
- za | ||
- gd | ||
- rb | ||
- ko | ||
- ab | ||
- rjm | ||
- dk | ||
|
||
jobs: | ||
createcachetable: | ||
runs-on: ubuntu-latest | ||
env: | ||
CF_USERNAME: CF_${{ github.event.inputs.environment }}_USERNAME | ||
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD | ||
steps: | ||
- name: Create cache table for ${{ github.event.inputs.environment }} | ||
uses: cloud-gov/cg-cli-tools@main | ||
with: | ||
cf_username: ${{ secrets[env.CF_USERNAME] }} | ||
cf_password: ${{ secrets[env.CF_PASSWORD] }} | ||
cf_org: cisa-dotgov | ||
cf_space: ${{ github.event.inputs.environment }} | ||
cf_command: "run-task getgov-${{ github.event.inputs.environment }} --command 'python manage.py createcachetable' --name createcachetable" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters