Skip to content
Snippets Groups Projects
.gitlab-ci.yml 7.07 KiB
# yaml-language-server: $schema=gitlab-ci
# yaml-language-server: $format.enable=false

stages:
  - environment
  - compilers
  - concretize
  - install
  - release
  - deploy

workflow:
  rules:
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
    - if: $CI_COMMIT_BRANCH && $CI_OPEN_MERGE_REQUESTS
      when: never
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
    - if: $CI_COMMIT_TAG =~ /^v[0-9].*$/

variables:
  TERM: ansi
  LANG: en_US.UTF-8

.parallel_definition:
  parallel:
    matrix:
      # - environment: [helvetios]
      #   slurm_options: ["-c 36"]
      #   stack: ["pinot-noir"]
      #   app_image: ["registry.c4science.ch/scitas-stack/rhel9-jed"]
      #   path_suffix: ['']

      # - environment: [izar]
      #   slurm_options: ['-c 20 --gpus 1 -p izar']
      #   apptainer_options: ['--nv']
      #   stack: ["pinot-noir"]
      #   app_image: ["registry.c4science.ch/scitas-stack/rhel9-jed"]
      #   path_suffix: ['izar/']

      # - environment: [jed]
      #   slurm_options: ["-c 72 -p jed -q jed"]
      #   stack: ["pinot-noir"]
      #   app_image: ["registry.c4science.ch/scitas-stack/rhel9-jed"]
      #   path_suffix: ['']

      - environment: [kuma-h100]
        slurm_options: ["-c 64 -q scitas"]
        stack: ["pinot-noir"]
        apptainer_options: ['--nv']
        app_image: ["registry.c4science.ch/scitas-stack/rhel9-kuma"]
        path_suffix: ['']

      - environment: [kuma-l40s]
        slurm_options: ["-c 64 -q scitas"]
        stack: ["pinot-noir"]
        apptainer_options: ['--nv']
        app_image: ["registry.c4science.ch/scitas-stack/rhel9-kuma"]
        path_suffix: ['']
  tags:
    - stack
  rules:
    - if: $CI_COMMIT_TAG && $CI_COMMIT_TAG =~ /v[0-9]+.*/
      variables:
        SQUASHFS_ID: ${CI_COMMIT_REF_SLUG}
    - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
      variables:
        SQUASHFS_ID: ${CI_COMMIT_REF_SLUG}
    - if: $CI_PIPELINE_SOURCE == "merge_request_event"
      variables:
        SQUASHFS_ID: ${CI_MERGE_REQUEST_IID}