-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs/glossary: Continuous deployment article, excerpt #21438
Merged
AishaBlake
merged 8 commits into
gatsbyjs:master
from
webinista:docs/continuous-deployment
Feb 17, 2020
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
cae7a52
docs/glossary: Continuous deployment article, excerpt
webinista b164cf3
Update continuous-deployment.md: Fix some grammar, wording.
webinista 5d8cc6b
Update docs/docs/glossary.md
webinista df7a42e
Update docs/docs/glossary/continuous-deployment.md
webinista d8043e8
Update docs/docs/glossary/continuous-deployment.md
webinista fbdd1b4
Update docs/docs/glossary/continuous-deployment.md
webinista e6e0a86
Update docs/docs/glossary/continuous-deployment.md
webinista 337f387
glossary/continuous-deployment.md: Remove second link to blog post.
webinista File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -0,0 +1,28 @@ | ||||||
--- | ||||||
title: Continuous Deployment | ||||||
disableTableOfContents: true | ||||||
--- | ||||||
|
||||||
## What is continuous deployment? | ||||||
|
||||||
Continuous deployment is the automation of code deployments. In a continuous deployment system, you don't push a <q>Deploy</q> button or run a `deploy` command. Instead, you build a _pipeline_ — a process that builds and releases code automatically, without human intervention. | ||||||
webinista marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
You'll most likely use a service to create your continuous deployment pipeline. Services such as [Netlify](http://netlify.com/), [AWS Amplify](https://aws.amazon.com/amplify/), [Azure](https://azure.microsoft.com/en-us/), and [Zeit](https://zeit.co/) are popular with Gatsby users. Or you can use [Gatsby Builds](https://www.gatsbyjs.org/blog/2020-01-27-announcing-gatsby-builds-and-reports/), a feature of the [Gatsby Cloud](https://www.gatsbyjs.com/) service. | ||||||
webinista marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
A continuous deployment pipeline begins with a [Git](https://git-scm.com/) repository. Git is source control management software, and you use it to manage changes to your site's code. Most continuous deployment services require a hosted Git service such as [GitHub](https://github.com/), [GitLab](https://about.gitlab.com/), or [Bitbucket](https://bitbucket.org/). | ||||||
|
||||||
Your continuous deployment pipeline also requires a configuration file. [Gatsby Builds](https://www.gatsbyjs.org/blog/2020-01-27-announcing-gatsby-builds-and-reports/), for example, uses `package.json`. This configuration file contains the list of packages that your project requires, and what tests it should run. It also ensures that your test, staging, and production environments stay in sync. | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
|
||||||
Committing a change to your Git repository triggers the build and test process. Your continuous deployment service will download and install the packages listed in your configuration file. Once that's complete, it will run your test suite. | ||||||
|
||||||
If your changes pass the tests, they'll be published to your production environment. If any of your test fail, they won't. | ||||||
webinista marked this conversation as resolved.
Show resolved
Hide resolved
|
||||||
|
||||||
### <q>Continuous deployment</q> versus <q>continuous delivery</q> | ||||||
|
||||||
You'll sometimes see the phrase _continuous delivery_ instead of <q>continuous deployment</q>. Both are abbreviated <abbr>CD</abbr>. Continuous delivery also uses a pipeline to build and test code, but may not deploy it. Continuous deployment builds and deploys code but may not test it. In practice, these services overlap. Most services that offer continuous delivery also provide automated deployments; you probably won't use continuous deployment without tests. | ||||||
|
||||||
## Learn more about continuous deployment | ||||||
|
||||||
- [Preparing a Site for Deployment](/docs/preparing-for-deployment/) | ||||||
- [Deploying and Hosting](/docs/deploying-and-hosting/) in the Gatsby docs | ||||||
- [Announcing Gatsby Builds and Reports](/blog/2020-01-27-announcing-gatsby-builds-and-reports/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is commonly abbreviated, so I feel like it's worth adding a note from the beginning!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's change "your project" to "your software project".