The following .gitlab-ci.ylm file contains two stages and a request for an image:
image: alpine
stages:
- test
- build
random-job-1:
stage: build
script: echo "I am Job-1"
random-job-2:
stage: test
script: echo "I am Job-2"
The pipeline shows that the image is pulled per stage, hence twice for this pipeline.
Is there any way to avoid multiple pulls of the specified image by pulling an image per pipeline:
- when a private
Runneris used (e.g. local workstation)? - when a shared
RunnerofGitLab.comis used?