Hello!
It's my first time dealing with Bitbucket pipelines, so I may be very lost here.
We have a repository the creates a <build> directory. We would like to take this directory, from a specific branch, and add it to another repository, so it can be published as a Bitbucket public page.
I de believe we want to do something like what follows, but I don't know where to start and I'm not sure this is the best approach to have it published.
image: atlassian/default-image:3
pipelines:
default:
- step:
script:
- git clone --branch development --single-branch https://xxxxxxxxx@bitbucket.org/<workspace-id>/<repo>.git
- 'delete all files but the <build> directory'
- 'copy contents from <build> to root'
- 'delete <build> directory'
We would basically clone the whole repositoy, specifing the branch. Because it seems we can't just get the directory.
Does it make sense? Could you give some advice?
Thanks a lot in advance!