I am creating some bitbucket pipes to reuse on multiple projects but I would like them to be stored on a private container repository, in this case on GCP.
Is this something that is possible to do that and if so, where can I find some example.
Welcome to the community.
Unfortunately, it is not possible to create custom Pipes from a different repository outside Bitbucket Cloud. - https://support.atlassian.com/bitbucket-cloud/docs/write-a-pipe-for-bitbucket-pipelines/
For the Docker image, it has to be public at the moment.
However, we do have an existing feature request for it to support private Docker images that can be located through this link. - jira.atlassian.com/browse/BCLOUD-18270
You can upvote and watch it for now so that you'll be notified of any updates from our team when the feature becomes available on Bitbucket Cloud. Please do note that we don't have an exact ETA for the feature request as all new features will be implemented according to our policy here.
Do let me know if you have further questions.
Regards,
Mark C
Thanks for the reply @Mark C . I am actually able to use private images stored on the GCP Artifact Registry using the following approach. I'm using the "complete" approach from the "How to create a pipe" instructions page and for now it's working. I leave the example here :
- step: &pipetest
name: Pipe test
image: google/cloud-sdk:alpine
script:
- echo $GCLOUD_API_KEY_JSON > ./gcloud-api-key.json
- gcloud auth activate-service-account --key-file gcloud-api-key.json
- gcloud auth configure-docker <GCP-REGION>-docker.pkg.dev
- pipe: companyName/private-pipe-poc:1.0
variables:
TEMP_VAR: "someValue"
Nevertheless I'll keep an eye on that JIRA ticket that you have mentioned as for sure that I will jump to that solution when released.
Thanks again for the reply.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.