Uploaded image for project: 'Bitbucket Cloud'
  1. Bitbucket Cloud
  2. BCLOUD-18283

Bitbucket Pipes - Add support for private registries

    XMLWordPrintable

    Details

    • Feedback Policy:

      Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      Description

      Right now Bitbucket Pipes doesn't support own private registries, only Docker Hub.
      In some cases it's really useful to use own private images on AWS ECR or Container Registry on Google Cloud with some software that you don't want to share.

      I propose to add ability to define credentials for docker registry in similar way as we have for image:

      Example 1 - Docker Hub:

      #!yml
      - pipe: account-name/openjdk:8
        username: $DOCKER_HUB_USERNAME
        password: $DOCKER_HUB_PASSWORD
        email: $DOCKER_HUB_EMAIL
        variables:
          AWS_ACCESS_KEY_ID: &#x27;<string>&#x27;
          AWS_SECRET_ACCESS_KEY: &#x27;<string>&#x27;
          AWS_DEFAULT_REGION: &#x27;<string>&#x27;
          APPLICATION_NAME: &#x27;<string>&#x27;
      

      Example 2 - AWS ECR:

      #!yml
      - pipe: <aws_account_id>.dkr.ecr.<region>.amazonaws.com/openjdk:8
        aws: 
          access-key: $AWS_ACCESS_KEY
          secret-key: $AWS_SECRET_KEY
        variables:
          AWS_ACCESS_KEY_ID: &#x27;<string>&#x27;
          AWS_SECRET_ACCESS_KEY: &#x27;<string>&#x27;
          AWS_DEFAULT_REGION: &#x27;<string>&#x27;
          APPLICATION_NAME: &#x27;<string>&#x27;
      

      Example 3 - Google Container Registry:

      #!yml
      - pipe: <region>.gcr.io/<project>/image:latest
        username: _json_key
        password: &#x27;$GCR_JSON_KEY&#x27;
        variables:
          AWS_ACCESS_KEY_ID: &#x27;<string>&#x27;
          AWS_SECRET_ACCESS_KEY: &#x27;<string>&#x27;
          AWS_DEFAULT_REGION: &#x27;<string>&#x27;
          APPLICATION_NAME: &#x27;<string>&#x27;
      

      Example 4 - other registries:

      #!yml
      - pipe: docker.your-company-name.com/account-name/openjdk:8
        username: $USERNAME
        password: $PASSWORD
        email: $EMAIL
        variables:
          AWS_ACCESS_KEY_ID: &#x27;<string>&#x27;
          AWS_SECRET_ACCESS_KEY: &#x27;<string>&#x27;
          AWS_DEFAULT_REGION: &#x27;<string>&#x27;
          APPLICATION_NAME: &#x27;<string>&#x27;
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned
            Reporter:
            igor6 ihor_sviziev
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: