简体   繁体   中英

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

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM