Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

How to update docker image in Bitbucket Pipelines

Hi,

I have successfully followed the guides to create a custom docker image to be used with Bitbucket Pipelines. 

After doing so, I updated my docker image to add a few text files but when my pipeline step runs, I'm getting an error that the files cannot be found.

I have already performed the following debugging:

- checked the image to ensure the text files are there: yes

- added command to the pipeline step to list all the directories: the directory containing the files I need is missing

 

Is it possible to somehow "force refresh" the docker image/container used by Bitbucket Pipelines so that it updates with the missing files? If so, how to achieve this?

 

Thanks in advance.

2 answers

0 votes

Hi Celso,

Bitbucket Pipelines has a registry cache to speed up start-up times of builds. There is currently no way to refresh the cache (as other users could be using the same image).

The best solution I can offer is to update your Docker image with a different tag and then reference the new tag in your bitbucket-pipelines.yml configuration.

Thanks,

Phil

I tried creating a new tag and changing it in the bitbucket-pipelines.yml and still uses the old image.

Like josep likes this

What's the tag you created?

What does your bitbucket-pipelines.yml file look like?

Hello, I created 1.0 tag and there is no difference. Before I didn't use any tag, just image name.

Hi,

just trying to understand if I got correctly: 

What happens then if you use one images as base image for several pipelines and then you update it? 

Would I have to update the  tag for the base  on all the pipelines ? 

 

Thanks ! 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Bitbucket

Contest: Share your custom Bitbucket Pipe and win

Announced in this blog, this holiday season we’re celebrating all things CI/CD and between now and the end of 2019 we’ll be showcasing content, use cases, feature announcements and more. One featur...

2,132 views 11 6
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you