Set RAM/CPU per CI job

Hi
Guys, I have configured group runners (AWS) spawned by docker machine, runners are tagged e.g. 2xlarge. I would like to achieve setup RAM/vCPU per job, let’s say:

stages:
  - build
  - test
  - deploy

build:
image: registry.gitlab.com/superhiperproject/npm:latest
stage: build
  script:
    - build.sh
  only:
    - web
  tags:
    - 2xlarge

test:
image: registry.gitlab.com/superhiperproject/npm:latest
stage: test
  script:
    - test.sh
  only:
    - web
  tags:
    - 2xlarge

deploy:
image: registry.gitlab.com/superhiperproject/npm:latest
stage: deploy
  script:
    - test.sh
  only:
    - web
  tags:
    - 2xlarge

For jobs build/test I would like assign RAM=8GB and vCPU=4, for deploy default settings. How can I achieve it? It’s possible at all?
Thanks

Hi,

Instance type with Docker Machine is set on Runner level. If you want different instance types you would need to have different Runners, Similar how GitLab SaaS Shared runners are setup.

Note: Docker Machine is deprecated, no longer developed by Docker and GitLab deprecated this runner type as well. It will be around until replacement is available, more info in Docker Machine Replacement Project Plan (&6995) · Epics · GitLab.org · GitLab

Hi
Thank you @balonik for explanation