Forums

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

IS it possible to store a bitbucket pipe on a private GCP artifact/container repository

Ricardo Paquito
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 11, 2022

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. 

1 answer

0 votes
Mark C
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
October 17, 2022

Hi @Ricardo Paquito

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

Ricardo Paquito
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 18, 2022

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.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events