docs: Update documentation about deployment
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
Mangiang 2022-05-29 00:02:05 -04:00
parent 1dd2c96eb0
commit aaf8724535
2 changed files with 25 additions and 1 deletions

19
.ansible/README.md Normal file
View File

@ -0,0 +1,19 @@
# Website Deployment
The deployment happens on commit and merge on `master` branch and it is handled by [DroneCI](https://drone.sp-tarkov.com/SPT-AKI/Website) and Ansible.
## Deployment flow
On development and feature branches, the deployment flow is:
- cloning the project
- replacing values for ansible inventory file using DroneCI secrets
- Checking the playbook syntax
- Running the playbook in dry-run mode
On master, the deployment flow is:
- cloning the project
- replacing values for ansible inventory file using DroneCI secrets
- Checking the playbook syntax
- Running the playbook in dry-run mode
- Executing the playbook
## The playbook
It has only one instruction: Go to the directory in the server and `git pull` to update everything.

View File

@ -8,3 +8,8 @@ This repository contain the following websites content:
* www.sp-tarkov.com
* codepaste.sp-tarkov.com
* [db.sp-tarkov.com](https://db.sp-tarkov.com) (see [developer documentation](https://dev.sp-tarkov.com/WillDaPope/DB-Website/src/branch/main/README.md))
## Deployment
The deployment happens on commit and merge on `master` branch and it is automatically handled by [DroneCI](https://drone.sp-tarkov.com/SPT-AKI/Website) and Ansible.
See the [documentation for deployment](.ansible/README.md).