I have a new Wordpress build on Kinsta using Trellis/Bedrock/Sage by the Roots team. Trellis comes with a command to deploy directly from your local version but I'd like to automate this. Where i'm getting stuck is with the build-before.yml file that is ran with deployment. Here's what it looks like:
As you can see these commands require installs such as Node, PHP, and rsync. But the main Trellis command that will be ran to deploy my code in the pipeline requires the python image. So the issue started just by running this pipeline and Bitbucket wasn't able to go through the commands in the build-before.yml file because it only had the python image defined. Here's a look at what my current bitbucket-pipelines.yml looks like and then I'll get into what I think I need to do from here and what I've tried so far
So I think what I need to do is get rid of the scripts in build-before.yml and split them up into separate steps in my pipeline config. In the image above you can see that I already added in the Build Assets step that will get rid of the Install NPM dependencies & Compile Assets for production steps in the build-before.yml file.
I ran the pipeline after deleting those steps from the build-before file and my assets were built successfully. But now I'm getting stuck on the Install Composer Dependencies & Copy Production assets steps.
So I guess my question really is if anyone has done this before with Trellis and can you let me know if I'm headed in the right direction. I feel like I'm very close but also so far.
There are very few examples I've found of other developers creating pipelines for Trellis using bitbucket and those examples are quite outdated.
Any help would be appreciated!
Hi Community! The submissions are in (and listed below) for the 🍻🍂Apptoberfest🍂🍻 Demo Competition and it’s time for you to place your votes for the best: Analytics & reporting app demo ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events