How to automate WordPress delivery with Docker and Buddy [part.2]
We showed you how to dockerize your WordPress project and run it on the server using Docker Compose, in the first part of the guide, right here.
Objective of this guide is to show help you streamline the whole process down to a single git push.
Set up a project with Buddy
Now you need to configure a delivery pipeline so that it automatically executes on every push to branch:
- Sign up to Buddy with your GitHub/Bitbucket account or email
- Create a new project, select your Git provider, and choose your WP project:
Set up a delivery pipeline
Now you need to configure a delivery pipeline so that it automatically executes on every push to branch:
- Click Add a new pipeline
- Set the trigger mode to ‘On every push’
- Select the branch that will trigger the execution
- Click Add a new pipeline when ready
Define the delivery actions
Now it’s time to reproduce your workflow into actions:
- Add K8s deployment con
- (Optional) Add a build action to process your files before the deployment. In this example we’ll use Gulp to test the application: