mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-06 01:35:22 +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.
|
||||
|
||||
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:
|
||||
pull_request:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
branches:
|
||||
- 'ik/**'
|
||||
- 'rjm/**'
|
||||
- 'jon/**'
|
||||
- 'sspj/**'
|
||||
- 'mr/**'
|
||||
- 'nmb/**'
|
||||
- 'lmm/**'
|
||||
|
||||
jobs:
|
||||
variables:
|
||||
|
@ -21,14 +27,6 @@ jobs:
|
|||
script: |
|
||||
core.setOutput('environment', '${{ github.head_ref }}'.split("/")[0]);
|
||||
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
|
||||
needs: [variables]
|
||||
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?
|
||||
options:
|
||||
- stable
|
||||
- rjm
|
||||
- jon
|
||||
- lmm
|
||||
- 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?
|
||||
options:
|
||||
- stable
|
||||
- rjm
|
||||
- jon
|
||||
- lmm
|
||||
- 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.
|
||||
ALLOWED_HOSTS = [
|
||||
"getgov-stable.app.cloud.gov",
|
||||
"getgov-rjm.app.cloud.gov",
|
||||
"getgov-jon.app.cloud.gov",
|
||||
"getgov-mr.app.cloud.gov",
|
||||
"getgov-sspj.app.cloud.gov",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue