Ch1ll1_K
Ch1ll1_K

Reputation: 13

Gitlab CI Runner with tag

I am trying now 100 times an dont get it, maybe someone can help me out

I have a CI Job in Gitlab which should run on a specific runner that is installed on an OSx System but the job doesnt appaer in the gitlab pipeline ui when I start the pipeline.

Here My gitlab-ci.yml:

app-ios:
  stage: build
  script:
  - echo 'test'
  tags:
    - apple
    - shell
  only:
    - deploy/app

I tried register again the runner I tried register with only one tag

Upvotes: 1

Views: 9279

Answers (1)

Arty-chan
Arty-chan

Reputation: 2998

When adding tags to your CI YAML file, you want to make sure that your runner has the corresponding tags.

From the docs,

a runner must be assigned every tag listed in the job.

So in your case, you want to make sure that the registered runner also has both the tags apple and shell. Obviously, the runner can have more tags, but it needs to have at least those two.

Upvotes: 3

Related Questions