Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
M
marketplace
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge Requests 0
    • Merge Requests 0
  • Requirements
    • Requirements
    • List
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Test Cases
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Code Review
    • Insights
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar

and though bugs are the bane of my existence, rest assured the wretched thing will get the best of care here

  • Confidential and Proprietary
  • BlocPower
  • marketplace
  • Wiki
  • Continuous Deployment and Continuous Integration

Continuous Deployment and Continuous Integration · Changes

Page history
Created Continuous Deployment and Continuous Integration (markdown) authored Feb 11, 2016 by Jose Daniel Contreras's avatar Jose Daniel Contreras
Hide whitespace changes
Inline Side-by-side
Showing with 41 additions and 0 deletions
+41 -0
  • Continuous-Deployment-and-Continuous-Integration.md Continuous-Deployment-and-Continuous-Integration.md +41 -0
  • No files found.
Continuous-Deployment-and-Continuous-Integration.md 0 → 100644
View page @ e12cf711
##Circle CI
Continuous Integration and Continuous Deployment (CI/CD) on CircleCI allows us to easily run tests and deploy when making commits or accepting pull requests in Github.
When a change happens in Github, it triggers the start of a build on CircleCI. CircleCI then loads latest commit and checks a configuration file(circle.yml) in the root directory of the repository which indicates how the deployment should be handled by the build machine. If a build fails the tests it is not deployed.
###CircleCI Environment Variables
AWS_REGION: us-east-1
Since our Elastic Beanstalk application lives in us-east-1.
###Our CircleCI Configuration File Explained (circle.yml):
**Build Machine**:
Our build machine configuration is set up with PHP 5.4.5 and Python 2.7.6.
**Dependencies**:
Installed:
* Amazon Web Services command-line interface(awscli)
* Amazon Web Services Elastic Beanstalk command-line interface(awsebcli)
These are needed to make sure that necessary AWS resources exist and to deploy to Elastic Beanstalk.
**Tests**:
As of now we have a dummy test that always passes, but that should be modified to actually run tests needed for a security and confidence in our deployments.
**Deployment**:
If the staging production or production branches pass the tests then deployment of application begins.
For staging deployment the steps are as follows:
1. Ensure RDS with DB data is up (deployment/rds-wait.sh)
2. Package up the application for deployment (deployment/build-zip.sh)
3. Deploy using the AWS Elastic Beanstalk CLI to marketplace-staging(eb ebdeploy).
**Incomplete**
For productions the steps are as follows:
1. Ensure RDS is running
2. Package up the application for deployment
3. Deploy to new clone environment of production with new build
4. Swap CNAME with production environment and let legacy production environment on til DNS propagates.
For production, we want to have updates with no downtime. Need to include an EB SWAP when deploying machines to production to assume the same CNAME as the running production environment.
\ No newline at end of file
Clone repository
  • Continuous Deployment and Continuous Integration
  • Custom Fields & User Editor Plugin Setup
  • Deployment
  • Home
  • Running Locally
  • Stack
  • Testing