mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-16 22:44:11 +02:00
Add new developer sandbox 'rjm' infrastructure (#566)
* Add new developer sandbox 'rjm' infrastructure * fix conditional run * revert change * with correct syntax * move to dependency * fix typo * try branches instead * add push * fix tab * fix quote * trying pr branch context again
This commit is contained in:
parent
fc40237352
commit
d9d86fb8c0
5 changed files with 39 additions and 11 deletions
20
.github/workflows/deploy-sandbox.yaml
vendored
20
.github/workflows/deploy-sandbox.yaml
vendored
|
@ -1,12 +1,18 @@
|
||||||
# This workflow runs on pushes when a pull request is opened under certain branch conventions.
|
# This workflow runs on pushes when a pull request is opened under certain branch conventions.
|
||||||
|
|
||||||
name: Build and deploy developer sandbox
|
name: Build and deploy developer sandbox
|
||||||
run-name: Build and deploy developer sandbox for branch ${{ github.ref_name }}
|
run-name: Build and deploy developer sandbox for branch ${{ github.head_ref }}
|
||||||
|
|
||||||
on:
|
on:
|
||||||
pull_request:
|
pull_request:
|
||||||
paths-ignore:
|
branches:
|
||||||
- 'docs/**'
|
- 'ik/**'
|
||||||
|
- 'rjm/**'
|
||||||
|
- 'jon/**'
|
||||||
|
- 'sspj/**'
|
||||||
|
- 'mr/**'
|
||||||
|
- 'nmb/**'
|
||||||
|
- 'lmm/**'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
variables:
|
variables:
|
||||||
|
@ -21,14 +27,6 @@ jobs:
|
||||||
script: |
|
script: |
|
||||||
core.setOutput('environment', '${{ github.head_ref }}'.split("/")[0]);
|
core.setOutput('environment', '${{ github.head_ref }}'.split("/")[0]);
|
||||||
deploy:
|
deploy:
|
||||||
if: |
|
|
||||||
${{startsWith(github.head_ref, 'ik/')
|
|
||||||
|| startsWith(github.head_ref, 'jon')
|
|
||||||
|| startsWith(github.head_ref, 'sspj/')
|
|
||||||
|| startsWith(github.head_ref, 'mr/')
|
|
||||||
|| startsWith(github.head_ref, 'nmb/')
|
|
||||||
|| startsWith(github.head_ref, 'lmm/')
|
|
||||||
}}
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: [variables]
|
needs: [variables]
|
||||||
steps:
|
steps:
|
||||||
|
|
1
.github/workflows/migrate.yaml
vendored
1
.github/workflows/migrate.yaml
vendored
|
@ -14,6 +14,7 @@ on:
|
||||||
description: Which environment should we run migrations for?
|
description: Which environment should we run migrations for?
|
||||||
options:
|
options:
|
||||||
- stable
|
- stable
|
||||||
|
- rjm
|
||||||
- jon
|
- jon
|
||||||
- lmm
|
- lmm
|
||||||
- ik
|
- ik
|
||||||
|
|
1
.github/workflows/reset-db.yaml
vendored
1
.github/workflows/reset-db.yaml
vendored
|
@ -15,6 +15,7 @@ on:
|
||||||
description: Which environment should we flush and re-load data for?
|
description: Which environment should we flush and re-load data for?
|
||||||
options:
|
options:
|
||||||
- stable
|
- stable
|
||||||
|
- rjm
|
||||||
- jon
|
- jon
|
||||||
- lmm
|
- lmm
|
||||||
- ik
|
- ik
|
||||||
|
|
27
ops/manifests/manifest-rjm.yaml
Normal file
27
ops/manifests/manifest-rjm.yaml
Normal file
|
@ -0,0 +1,27 @@
|
||||||
|
---
|
||||||
|
applications:
|
||||||
|
- name: getgov-rjm
|
||||||
|
buildpacks:
|
||||||
|
- python_buildpack
|
||||||
|
path: ../../src
|
||||||
|
instances: 1
|
||||||
|
memory: 512M
|
||||||
|
stack: cflinuxfs3
|
||||||
|
timeout: 180
|
||||||
|
command: ./run.sh
|
||||||
|
health-check-type: http
|
||||||
|
health-check-http-endpoint: /health
|
||||||
|
env:
|
||||||
|
# Send stdout and stderr straight to the terminal without buffering
|
||||||
|
PYTHONUNBUFFERED: yup
|
||||||
|
# Tell Django where to find its configuration
|
||||||
|
DJANGO_SETTINGS_MODULE: registrar.config.settings
|
||||||
|
# Tell Django where it is being hosted
|
||||||
|
DJANGO_BASE_URL: https://getgov-rjm.app.cloud.gov
|
||||||
|
# Tell Django how much stuff to log
|
||||||
|
DJANGO_LOG_LEVEL: INFO
|
||||||
|
routes:
|
||||||
|
- route: getgov-rjm.app.cloud.gov
|
||||||
|
services:
|
||||||
|
- getgov-credentials
|
||||||
|
- getgov-rjm-database
|
|
@ -549,6 +549,7 @@ SECURE_SSL_REDIRECT = True
|
||||||
# web server configurations.
|
# web server configurations.
|
||||||
ALLOWED_HOSTS = [
|
ALLOWED_HOSTS = [
|
||||||
"getgov-stable.app.cloud.gov",
|
"getgov-stable.app.cloud.gov",
|
||||||
|
"getgov-rjm.app.cloud.gov",
|
||||||
"getgov-jon.app.cloud.gov",
|
"getgov-jon.app.cloud.gov",
|
||||||
"getgov-mr.app.cloud.gov",
|
"getgov-mr.app.cloud.gov",
|
||||||
"getgov-sspj.app.cloud.gov",
|
"getgov-sspj.app.cloud.gov",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue