Přeskočit na obsah
_CORE
AI & Agentic Systems Core Informační Systémy Cloud & Platform Engineering Data Platforma & Integrace Security & Compliance QA, Testing & Observability IoT, Automatizace & Robotika Mobile & Digital Banky & Finance Pojišťovnictví Veřejná správa Obrana & Bezpečnost Zdravotnictví Energetika & Utility Telco & Média Průmysl & Výroba Logistika & E-commerce Retail & Loyalty
Reference Technologie Blog Know-how Nástroje
O nás Spolupráce Kariéra
Pojďme to probrat

GitLab CI — Pokročilé Pipeline

17. 02. 2024 1 min čtení intermediate

DevOps Pokročilý

GitLab CI — Pokročilé Pipeline

GitLab CICI/CDDevOpsPipeline 5 min čtení

GitLab CI pokročilé techniky: DAG pipelines, child pipelines, includes a review apps.

DAG Pipelines

stages:
  - build
  - test
  - deploy

build-frontend:
  stage: build
  script: npm run build

build-backend:
  stage: build
  script: go build -o app

test-frontend:
  stage: test
  needs: [build-frontend]
  script: npm test

test-backend:
  stage: test
  needs: [build-backend]
  script: go test ./...

deploy:
  stage: deploy
  needs: [test-frontend, test-backend]
  script: kubectl apply -f k8s/

Child Pipelines & Includes

include:
  - project: 'devops/ci-templates'
    file: '/templates/docker-build.yml'
  - local: '.gitlab/security.yml'

trigger-microservices:
  trigger:
    include:
      - local: services/api/.gitlab-ci.yml
      - local: services/worker/.gitlab-ci.yml
    strategy: depend

Review Apps

deploy-review:
  stage: deploy
  script:
    - helm upgrade --install review-$CI_COMMIT_REF_SLUG ./chart
      --set image.tag=$CI_COMMIT_SHA
      --set ingress.host=$CI_COMMIT_REF_SLUG.review.example.com
  environment:
    name: review/$CI_COMMIT_REF_SLUG
    url: https://$CI_COMMIT_REF_SLUG.review.example.com
    on_stop: stop-review
    auto_stop_in: 1 week
  rules:
    - if: $CI_MERGE_REQUEST_IID

Shrnutí

GitLab CI s DAG pipelines, child pipelines a review apps umožňuje škálovatelné a rychlé pipeline.

Potřebujete pomoct s implementací?

Náš tým má zkušenosti s návrhem a implementací moderních architektur. Rádi vám pomůžeme.

Nezávazná konzultace

Sdílet:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.