Is it possible to use multiple docker images at the same stage? If not what is the workaround for it?

I was wondering if there is an option to use several docker images in same stage ? Like python and node ?

I am expecting to have a syntax like that

run_tests:
  image: [python:image, node:image]
  stage: test
  script:
    - echo "woohoo, tests pass" 

If there isn’t an option, what is the workaround for it ?

Hi @OmarSherif96

first to correct the naming you want to use multiple docker images in the same job.

use template job and extend from it

.run_tests_template:
  stage: test
  script:
    - echo "woohoo, tests pass" 

python:
  extends: ['.run_tests_template']
  image: python:image

node:
  extends: ['.run_tests_template']
  image: node:image

this will create two jobs that will run in the same stage

1 Like

Thanks for your reply @balonik , but will this allow me to pass computed values from the first job to the 2nd job ?

For example, an operation made using the python image, And then passing the results to node

@OmarSherif96
Yes, you can use artifacts for that.