-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
42 additions
and
40 deletions.
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,37 @@ | ||
# Production Operations | ||
|
||
## Production | ||
|
||
Production deployment is triggered through Git release tag of format: | ||
|
||
``` | ||
release-x.x.x | ||
``` | ||
|
||
The `x.x.x` conforms to semantic versioning. | ||
|
||
Push a release through git | ||
|
||
``` | ||
git tag -a -m "Release for XYZ" release-X.Y.Z | ||
git push origin --tags | ||
``` | ||
|
||
### Production Environment | ||
|
||
The entire deployment, including secrets are managed through Bitbucket pipeline. | ||
Refer to `bitbucket-pipelines.yml` for detail. | ||
|
||
Secrets are available during build process as part of Bitbucket pipeline environment variable. | ||
|
||
### Manual Build | ||
|
||
Look at `prodrun.sh` | ||
|
||
### Stop Containers | ||
|
||
``` | ||
docker rm --force `docker ps -q` | ||
``` | ||
|
||
**NOTE:** The above command will stop all running containers in the system |