0

I have a Github repository containing two folders, server and client. I want to deploy the server in AWS using CodePipeline and ElasticBeanstalk, but the source phase of the pipeline pulls both folders, which then gives an error during the deploy.

Is there a way to grab only the server folder?

1
  • 1
    Would a buildspec file help you? Commented Jan 15, 2023 at 1:53

1 Answer 1

1

A CodePipeline GitHub source action will always "grab" the entire contents of the repo branch. But the pipeline's build action can simply ignore the folders you don't need, operating only on your server folder.

Often this is as easy as adding cd server to the CodeBuild commands in the pipeline's build action.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.