Skip to content
Browse files
Added CD Config Notes
  • Loading branch information
aa7401 committed Nov 20, 2019
1 parent 4b9bdf5 commit 903269b
Showing 1 changed file with 22 additions and 0 deletions.
@@ -117,3 +117,25 @@ heroku logs --tail
Continuous integration is the process of regularly merging code changes into the central repository. For this to work all code must be regularly checked for issues using a range of automated tools. As of the time of writing GitHub have an integrated CI tool called **Github Actions** however this is still in beta. For this lab you will be using the CI tools that are built into GitLab which is why you have already mirrored the test code to a repository on the GitLab server.

Committing and pushing to trigger the workflow.

## 3 Continuous Delivery

Once you have mastered the deployment process and configuring your CI pipeline you will want to implement a full CD workflow. This will require you to automate the deployment to one (or more) cloud servers. To achieve this you will need to add additional stages to your CI build to:

1. Deploy to a test server.
2. Run a suite of acceptance tests.
3. Deploy to the live server.

Whilst you will need to spend time configuring the build and ensuring that the correct stages of the pipeline run on the correct branches you will find the following snippet helpful:

stage: staging-server
- apt-get update -qy
- apt-get install -y ruby ruby-dev rubygems-integration
- gem install dpl
- dpl --provider=heroku --app=<YOUR APP NAME> --api-key=<YOUR KEY HERE>
- master

0 comments on commit 903269b

Please sign in to comment.