Hi there
I have three applications. (let’s call them A, B, and C)
The C application just has some gitlab-ci.yml
files which I use them in A
and B
.
I use the include
keyword for using the gitlab-ci.yml
in the A
and B
. something like this:
include:
– project: ‘C’
ref: main
I built a docker image for each application.
And now, In application B
, when the pipeline is run on the test stage, an error appears saying that It wants the docker image of application A
.
I changed the test stage inside the gitlab-ci
of the application B
like this:
mvn_test:
image: $IMAGE_ADDRESS:$IMAGE_VERSION
services:
- name: mysql:main
alias: mysql
And the image was successfully pulled.
And now the problem is: in the test stage, it uses just the docker image of application A
.
whereas I want it use the docker image of C
.
Actually, I want in the test stage of B
, the docker image of A
just run and then test stage use the docker image of C
. but it’s not happened.
I hope I have conveyed what I mean.