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? Edited

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
TAGS
Community showcase
Published in Bitbucket Pipelines

What We Learned When We Researched Open Source Vulnerabilities in 7 Popular Coding Languages

...hey are a part of us, shaping how we interact with the world around us. The same holds true for programming languages when we think about how different kinds of vulnerabilities raise their heads in t...

907 views 0 3
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