Forums

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

Is it possible to push a Bitbpucket Pipeline Pipe to private container registry?

Sławomir Wdówka
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!
March 1, 2019

Is it possible to create a private Pipeline Pipe - one which would be pushed to private, password protected container registry . 

1 answer

0 votes
Edwin Kyalangalilwa
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 3, 2019

Hi @Sławomir Wdówka ,

Yes its possible.

  1. You will first setup variables
  2. Then in your build, reference the variables to authenticate and push to the registry.

Example pushing to Docker hub:

image: maven:3.3.9

pipelines:
default:
-
step:
caches:
-
maven
script:
-
mvn -B clean package
artifacts:
-
target/sample-app-*.jar
-
step:
name: Deploy to test
deployment: test
script:
-
echo "Deploying to test environment"
-
docker login -u $DOCKER_USER -p $DOCKER_PASS
-
docker build -t company/sample-maven:$BITBUCKET_BRANCH .
-
docker push company/sample-maven:$BITBUCKET_BRANCH

options:
docker: true
Sławomir Wdówka
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!
March 5, 2019

Hi @Edwin Kyalangalilwa 

Sorry, I wasn't clear enough. I was trying to ask whether the new Piepes ( https://confluence.atlassian.com/bitbucket/how-to-make-a-pipe-for-pipelines-966051288.html ) can be also used if pipe's docker image is in a private container registry. 

All examples I've seen are related to public DockerHub repos

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events