mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-18 15:34:16 +02:00
Added test workflow to see if this results in zero downtime
This commit is contained in:
parent
97eca95786
commit
8fb16364fe
2 changed files with 42 additions and 1 deletions
41
.github/workflows/test-deploy.yaml
vendored
Normal file
41
.github/workflows/test-deploy.yaml
vendored
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
# This workflow is to for testing a change to our deploy structure and will be deleted when testing finishes
|
||||||
|
|
||||||
|
name: Deploy Main
|
||||||
|
run-name: Run deploy for ${{ github.event.inputs.environment }}
|
||||||
|
|
||||||
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
|
inputs:
|
||||||
|
environment:
|
||||||
|
type: choice
|
||||||
|
description: Which environment should we run deploy for?
|
||||||
|
options:
|
||||||
|
- development
|
||||||
|
- backup
|
||||||
|
- ky
|
||||||
|
- es
|
||||||
|
- nl
|
||||||
|
- rh
|
||||||
|
- za
|
||||||
|
- gd
|
||||||
|
- rb
|
||||||
|
- ko
|
||||||
|
- ab
|
||||||
|
- rjm
|
||||||
|
- dk
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
deploy:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
CF_USERNAME: CF_${{ github.event.inputs.environment }}_USERNAME
|
||||||
|
CF_PASSWORD: CF_${{ github.event.inputs.environment }}_PASSWORD
|
||||||
|
steps:
|
||||||
|
- name: Deploy to cloud.gov sandbox
|
||||||
|
uses: cloud-gov/cg-cli-tools@main
|
||||||
|
with:
|
||||||
|
cf_username: ${{ secrets[env.CF_USERNAME] }}
|
||||||
|
cf_password: ${{ secrets[env.CF_PASSWORD] }}
|
||||||
|
cf_org: cisa-dotgov
|
||||||
|
cf_space: ${{ env.ENVIRONMENT }}
|
||||||
|
cf_command: "cf push -f ops/manifests/manifest-${{ env.ENVIRONMENT }}.yaml --strategy rolling"
|
|
@ -4,7 +4,7 @@ applications:
|
||||||
buildpacks:
|
buildpacks:
|
||||||
- python_buildpack
|
- python_buildpack
|
||||||
path: ../../src
|
path: ../../src
|
||||||
instances: 1
|
instances: 2
|
||||||
memory: 512M
|
memory: 512M
|
||||||
stack: cflinuxfs4
|
stack: cflinuxfs4
|
||||||
timeout: 180
|
timeout: 180
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue