'Gitlab CI: How do I download a image before jobs start executing?

I'm trying to run jobs in multiple stages. Is it possible to download a image while previous stages are running & current stage execution has not started?



Solution 1:[1]

Considering jobs in the same stage run in parallel, you can define a job using a shell executor which will do a docker pull.

In the same stage, you can define other jobs which can execute parallel commands.

The next stage, executed on the same runner, will benefit from the docker image already downloaded.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VonC