Commit c31d6f1d authored by nimrod's avatar nimrod
Browse files

Common, selective jobs based on the branch.

To have a common .gitlab-ci.yml.
parent 426ddf7f
Loading
Loading
Loading
Loading
Loading
+34 −8
Original line number Diff line number Diff line
@@ -10,15 +10,41 @@ stages:
  - build
  - deploy

build:
# FIXME: Remove duplicate jobs once
# https://gitlab.com/gitlab-org/gitlab/-/issues/35742 is resolved.

build-ns4:
  extends: .compose-build
  tags: [ns4.shore.co.il]
  only:
    - ns4

run-ns4:
  extends: .compose-run
  tags: [ns4.shore.co.il]
  only:
    - ns4

build-host01:
  extends: .compose-build
  tags: ["${CI_COMMIT_BRANCH}.shore.co.il"]
  except:
    - master
  tags: [host01.shore.co.il]
  only:
    - host01

run-host01:
  extends: .compose-run
  tags: [host01.shore.co.il]
  only:
    - host01

build-kodi:
  extends: .compose-build
  tags: [kodi.shore.co.il]
  only:
    - kodi

run:
run-kodi:
  extends: .compose-run
  tags: ["${CI_COMMIT_BRANCH}.shore.co.il"]
  except:
    - master
  tags: [kodi.shore.co.il]
  only:
    - kodi