Код IT
← Каталог

Использование Git и GitFlow в DevOps-процессах — Конфигурация

Фрагмент из «Использование Git и GitFlow в DevOps-процессах»: Конфигурация.

yaml infra-securityencyclopedia8-04-devops-ci-cd-12 embed URL статья в энциклопедии
YAML main.yaml
stages:
  - build
  - test
  - deploy

build_job:
  stage: build
  script:
    - npm ci
    - npm run build
  artifacts:
    paths:
      - dist/

test_job:
  stage: test
  script:
    - npm test
  needs: ["build_job"]
stages:
  - build
  - test
  - deploy

build_job:
  stage: build
  script:
    - npm ci
    - npm run build
  artifacts:
    paths:
      - dist/

test_job:
  stage: test
  script:
    - npm test
  needs: ["build_job"]