Create dev sandboxes scripts and first sandbox (#370)

* Add templates, scripts, and process documentation for creating and destroying developer sandboxes

* Create developer sandbox 'lmm' infrastructure

* fix up newlines

* fix action syntax pull_request

* add a line about the public.crt to developer docs

* add docs about branch conventions

* add new developer sandbox 'ik' infrastructure

* Add new developer sandbox 'nmb' infrastructure

* Add new developer sandbox 'sspj' infrastructure

* Add new developer sandbox 'mr' infrastructure

* make github actions dynamic by environment

* trying something out with dynamic github action for dev sandbox

* consolidate github actions to dynamic action

* try out run name

* combo run name and name

* respond to comments
This commit is contained in:
Logan McDonald 2023-01-20 09:50:36 -08:00 committed by GitHub
parent 6a54bf1ff4
commit 508e5384cb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 524 additions and 67 deletions

39
.github/workflows/deploy-stable.yaml vendored Normal file
View file

@ -0,0 +1,39 @@
# This workflow runs on pushes of tagged commits.
# "Releases" of tagged commits will deploy selected branch to stable.
name: Build and deploy stable for tagged release
on:
push:
paths-ignore:
- 'docs/**'
tags:
- v*
jobs:
deploy-stable:
if: ${{ github.ref_type == 'tag' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Compile USWDS assets
working-directory: ./src
run: |
docker compose run node npm install &&
docker compose run node npx gulp copyAssets &&
docker compose run node npx gulp compile
- name: Collect static assets
working-directory: ./src
run: docker compose run app python manage.py collectstatic
- name: Deploy to cloud.gov sandbox
uses: 18f/cg-deploy-action@main
env:
DEPLOY_NOW: thanks
with:
cf_username: ${{ secrets.CF_STABLE_USERNAME }}
cf_password: ${{ secrets.CF_STABLE_PASSWORD }}
cf_org: cisa-getgov-prototyping
cf_space: stable
push_arguments: "-f ops/manifests/manifest-stable.yaml"