2022-05-29 00:02:05 -04:00
# Website Deployment
2022-05-29 00:06:10 -04:00
2022-05-29 00:08:19 -04:00
The deployment happens on commit and merge on `master` branch. It is automatically handled by [DroneCI ](https://drone.sp-tarkov.com/SPT-AKI/Website ) and Ansible.
2022-05-29 00:06:10 -04:00
The deployment pipeline lives in:
- [.drone-docker.yml ](../.drone-docker.yml ) for the official [DroneCI ](https://drone.sp-tarkov.com/SPT-AKI/Website )
- [.drone-kubernetes.yml ](../.drone-kubernetes.yml ) for anyone testing this on a DroneCI in Kubernetes
2022-05-29 00:08:19 -04:00
## Deployment flow
On `development` and feature branches, the deployment flow is:
2022-05-29 00:06:10 -04:00
- Cloning the project
- Replacing values for ansible inventory file using DroneCI secrets
2022-05-29 00:02:05 -04:00
- Checking the playbook syntax
- Running the playbook in dry-run mode
2022-05-29 00:08:19 -04:00
On `master` , the deployment flow is:
2022-05-29 00:06:10 -04:00
- Cloning the project
- Replacing values for ansible inventory file using DroneCI secrets
2022-05-29 00:02:05 -04:00
- Checking the playbook syntax
- Running the playbook in dry-run mode
- Executing the playbook
## The playbook
2022-05-29 00:06:10 -04:00
2022-05-29 00:02:05 -04:00
It has only one instruction: Go to the directory in the server and `git pull` to update everything.