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`
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
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.