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:
Logan McDonald 2023-05-02 08:12:10 -07:00 committed by GitHub
parent fc40237352
commit d9d86fb8c0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 39 additions and 11 deletions

View file

@ -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:

View file

@ -14,6 +14,7 @@ on:
description: Which environment should we run migrations for?
options:
- stable
- rjm
- jon
- lmm
- ik

View file

@ -15,6 +15,7 @@ on:
description: Which environment should we flush and re-load data for?
options:
- stable
- rjm
- jon
- lmm
- ik

View 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

View file

@ -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",