Orchestrates deployment of PIWIK to ACP platforms
This project uses Matomo (formerly known as piwik) for collecting user journey and other vital stats. Even though this project relates to and fetches information from GAIT, it is not considered as one of its core services.
The following drone secrets must be set up for deployments to work
Drone Secrets | Example Values |
---|---|
KUBE_NAMESPACE | dq-dev |
KUBE_SERVER | https://kube-dev.dsp.notprod.**** |
KUBE_TOKEN | *** |
PIWIK_DBNAME | database name |
PIWIK_DBHOST | host name(url) |
PIWIK_DBPASSWORD | database password |
PIWIK_DBUSERNAME | database username |
PIWIK_SALT | salt for password hashing |
PIWIK_APP_HOST | piwik-test.notprod.**** |
drone secret add --event <EVENT> --image [--conceal] <IMAGE> <REPO NAME> <KEY> <VALUE>
example:
drone secret add \
--event pull_request \
--event deployment \
--image quay.io/ukhomeofficedigital/kd \
--conceal \
dacc-dq/piwik PIWIK_SALT xyz
Deployments are automatically ran once master branch is updated however you can also manually revert to a previous deployment from the command line
- Update master branch
- Drone watches for changes and runs build based on the latest in master
- Execute the following code from command line
drone deploy dacc-dq/piwik <BUILD NUMBER>
ACP Drone CI Guide: https://github.com/UKHomeOffice/application-container-platform/blob/master/how-to-docs/drone-how-to.md