I am having troubles with gitlab-ci with docker image. Searched a lot in the internet and still confused.
The Problem: I need to use docker image as base for my gitlab ci build.
I am using shell executor, and in my gitlab-ci.yml I defined image like this:
image: "registry.gitlab.com/my_projects/my_repo:latest"
I have this docker images pushed to gitlab registry. It contains core libraries required for my build (ruby, node, npm, etc etc)
I also defined [runners.docker] settings in gitlab-runner/config.toml file, which has some lines like this:
[[runners]]
executor = "shell"
[runners.docker]
services = ["registry.gitlab.com/my_project/my_repo:latest"]
The problem is that gitlab-runner ignores that image.
Here is the tutorial which I used:
https://dev.to/zimski/the-complete-guide-to-setup-a-cicd-for-rails-5-on-gitlab-2f2d
Is it possible to use docker image as base inside shell executor in gitlab-ci?