Skip to content

Commit

Permalink
Merge pull request #247 from adhocteam/rolling-deploys
Browse files Browse the repository at this point in the history
Rolling deploys
  • Loading branch information
rahearn authored Mar 16, 2021
2 parents 2e351ea + 685553d commit 81e876f
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 11 deletions.
1 change: 1 addition & 0 deletions .cfignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ cucumber/
deployment_config/
frontend/
src/
maintenance_page/
terraform/
hses.zip
temp/
Expand Down
10 changes: 7 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ commands:
\"description\": \"<< parameters.env_name >> Successfully Deployed\"
}
}"
cf_deploy:
description: "Login to cloud foundry space with service account credentials
and push application using deployment configuration file."
Expand Down Expand Up @@ -118,14 +117,19 @@ commands:
- run:
name: Push application with deployment vars
command: |
cf push --vars-file << parameters.deploy_config_file >> \
cf push --strategy rolling \
--vars-file << parameters.deploy_config_file >> \
--var AUTH_CLIENT_ID=${<< parameters.auth_client_id >>} \
--var AUTH_CLIENT_SECRET=${<< parameters.auth_client_secret >>} \
--var NEW_RELIC_LICENSE_KEY=${<< parameters.new_relic_license >>} \
--var SESSION_SECRET=${<< parameters.session_secret >>} \
--var HSES_DATA_FILE_URL=${<< parameters.hses_data_file_url >>} \
--var HSES_DATA_USERNAME=${<< parameters.hses_data_username >>} \
--var HSES_DATA_PASSWORD=${<< parameters.hses_data_password >>}
- run:
name: Push maintenance application
command: |
cd maintenance_page && cf push --vars-file ../<<parameters.deploy_config_file >>
parameters:
cg_org:
description: "Cloud Foundry cloud.gov organization name"
Expand Down Expand Up @@ -160,7 +164,7 @@ parameters:
default: "main"
type: string
sandbox_git_branch: # change to feature branch to test deployment
default: "js-338-383-frontend-tweaks"
default: "rolling-deploys"
type: string
prod_new_relic_app_id:
default: "877570491"
Expand Down
2 changes: 0 additions & 2 deletions Staticfile

This file was deleted.

2 changes: 2 additions & 0 deletions maintenance_page/Staticfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
root: www
location_include: includes/*.conf
6 changes: 6 additions & 0 deletions maintenance_page/manifest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
applications:
- name: tta-smarthub-maintenance-page-((env))
buildpacks:
- staticfile_buildpack
memory: 64M
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<img src="/eclkc-blocks-logo.png" alt="TTA Smarthub logo">
<span>
Office of Head Start TTA Smart Hub
</span>
</span>
</header>
<div class="container">
<div class="left-div">
Expand All @@ -25,4 +25,4 @@ <h1>The TTA Smart Hub is temporarily down.</h1>

</div>
</body>
</html>
</html>
File renamed without changes
File renamed without changes.
4 changes: 0 additions & 4 deletions manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,3 @@ applications:
instances: ((worker_instances))
command: yarn start:worker
memory: ((worker_memory))
- name: tta-smarthub-maintenance-page-((env))
buildpacks:
- staticfile_buildpack
memory: 64M

0 comments on commit 81e876f

Please sign in to comment.