Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

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

Caching docker image between steps

Sergei Beilin
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 16, 2019

I was thinking of splitting a pipeline into two steps:

  • build the docker image and run the tests,
  • push the image to registry and "deploy".

This separation seems logical but the image built in the first step is not available in the second one.

Any suggestions, best practices?

1 answer

0 votes
Richard Quadling
Contributor
May 12, 2020

I'm not an expert!!

But, normally, for anything to be carried over from one step to another, you need to have an `artifacts` entry in the step that generates the assets.

If this can work for docker images/layers, I've no idea.

This approach may be more suitable to assets built within the checkout (a `dist` folder for example).

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events