Zuriar
Zuriar

Reputation: 11774

Set docker image to use for job execution

I have a docker runner. This asked me to set the default docker image to be used for execution of jobs. How do I override this default from the .gitlab-ci.yml file per job?

Upvotes: 1

Views: 90

Answers (1)

Zuriar
Zuriar

Reputation: 11774

I figured it out:

job1:
  image: <image to use, overriding the default set by the runner>
  script: "<do something>"
  tags:
    - general

Upvotes: 1

Related Questions