windows,shell
mac,shell
.gitlab-ci.yml
stages: [info] job-windows: stage: info tags: [windows, shell] script: - echo "Runner Windows détecté" - ver || uname -a job-mac: stage: info tags: [mac, shell] script: - echo "Runner Mac détecté" - sw_vers || uname -a job-partage: stage: info script: - echo "Ce job s’exécute sur n’importe quel runner disponible"
job-windows
job-mac
job-partage
tags:
gitlab-runner register
job-multi: stage: info tags: [shell] script: - echo "Job shell compatible Mac/Windows"
Exemple de tag générique