Skip to content
Snippets Groups Projects
.gitlab-ci.yml 410 B
Newer Older
cache:           # Cache persists between pipelines
  key: ${CI_COMMIT_REF_SLUG}
  paths:
    - node_modules/
    - .next/
    - .npm/

include:
  - local: .prod-ci.yml
    rules:
      - if: '$CI_COMMIT_REF_NAME == "production"'  # Run prod pipeline on production branch
  - local: .dev-ci.yml
    rules:
      - if: '$CI_COMMIT_REF_NAME != "production"'  # Run dev pipeline on all branches except production