mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-04 08:52:16 +02:00
Add infrastructure for Development environment
This commit is contained in:
parent
c19c565210
commit
46dfd79275
6 changed files with 79 additions and 4 deletions
41
.github/workflows/deploy-development.yaml
vendored
Normal file
41
.github/workflows/deploy-development.yaml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
|||
# This workflow runs on pushes to main
|
||||
# any merge/push to main will result in development being deployed
|
||||
|
||||
name: Build and deploy development for release
|
||||
|
||||
on:
|
||||
push:
|
||||
paths-ignore:
|
||||
- 'docs/**'
|
||||
- '**.md'
|
||||
- '.gitignore'
|
||||
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
deploy-development:
|
||||
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 --no-input
|
||||
- name: Deploy to cloud.gov sandbox
|
||||
uses: 18f/cg-deploy-action@main
|
||||
env:
|
||||
DEPLOY_NOW: thanks
|
||||
with:
|
||||
cf_username: ${{ secrets.CF_DEVELOPMENT_USERNAME }}
|
||||
cf_password: ${{ secrets.CF_DEVELOPMENT_PASSWORD }}
|
||||
cf_org: cisa-dotgov
|
||||
cf_space: development
|
||||
push_arguments: "-f ops/manifests/manifest-development.yaml"
|
Loading…
Add table
Add a link
Reference in a new issue