|
|
@@ -90,13 +90,17 @@ IS_DEV=false
|
|
90
|
90
|
|
|
91
|
91
|
Lastly set your directory owner to `www-data` with `docker exec -it vue-wp chown -R www-data:www-data ./wp-content`
|
|
92
|
92
|
|
|
93
|
|
-:robot: Drone CI/CD
|
|
94
|
|
--------------------
|
|
95
|
93
|
|
|
96
|
|
-We use Drone for automated testing and deployment.
|
|
|
94
|
+:robot: CI/CD
|
|
|
95
|
+-------------
|
|
|
96
|
+
|
|
|
97
|
+Included is a drone config, and some recommended steps to build.
|
|
97
|
98
|
|
|
98
|
|
-To get automated builds working...
|
|
|
99
|
+* You MUST activate the pipeline
|
|
|
100
|
+* Add the `id_rsa` of the drone host to appropriate key in the pipeline secrets under the name `push_deploy_key`
|
|
99
|
101
|
|
|
100
|
|
-You MUST add your *private* `id_rsa` to the pipeline secrets under the name `push_deploy_key`
|
|
|
102
|
+You also need to setup a `post-receive` hook on the host server.
|
|
101
|
103
|
|
|
102
|
|
-You MUST have the `post-receive` hook running correctly
|
|
|
104
|
+* On your *development* machine, add the target host as a remote `git remote add </opt/staging/js-vue.git> staging master`
|
|
|
105
|
+* Login to the *remote* machine and setup a bare git repo on `git init --bare </opt/staging/js-vue.git>`
|
|
|
106
|
+* Copy the `post-receive` hook file into the `</opt/staging/js-vue.git/hooks/>` directory
|