Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket Pipeline configuration to source dotfiles

Michael Brizic March 2, 2022

Is there a pattern or configuration that would always source in dotfiles from the repository for any bitbucket pipeline image/container?

For example, if I have a repository with .bashrc/.bash_profile along with some other shared dotfiles that contain functions useful for multiple different pipelines that all use different Docker container types. I'd like to always source in these files so that every pipeline, and corresponding Docker container has these functions available.

I don't want to create a custom Docker image for every type of container I may use in my pipelines with these files.

I'm looking for something that Bitbucket Pipelines supports out-of-the-box rather than including a script step that does `source .bashrc` or `source dotfiles/.shared_functions`

 

1 answer

0 votes
Theodora Boudale
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 4, 2022

Hi Michael,

I'm afraid that there is no configuration to do that at the moment. If creating multiple custom Docker images is not a viable solution, then you will need to source these files by adding a command in the script of each step where these functions are needed.

You are more than welcome to raise a feature request in our issue tracker for that functionality for our product managers to consider:

https://jira.atlassian.com/secure/Dashboard.jspa

Kind regards,
Theodora

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events