Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Has anyone created a successful pipeline for a Trellis/Bedrock/Sage site?


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:


Screen Shot 2020-07-31 at 5.26.33 PM.png


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


Screen Shot 2020-07-31 at 5.28.41 PM.png

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!


0 answers

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Apps & Integrations

🍂📹 Apptoberfest demo contest roundup: vote for your favorite demos!

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 ...

250 views 6 16
Read article

Community Events

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

Events near you