Zum Hauptinhalt springen
Echtzeit-Radar & Feeds
Alle RSS Feeds ➔
👥 Community & Social
IT Security NachrichtenWie aus dem Lager eine smarte Logistikplattform wird(28.09.2026 um 06:55 Uhr)
•
AI & KI NachrichtenKI übernimmt den Netzwerkbetrieb(28.09.2026 um 14:35 Uhr)
•
IT Security NachrichtenKinder und KI - Ist analog das "neue Bio"?(26.09.2026 um 13:05 Uhr)
•
Sicherheitslücken (CVE)Cross-Site Request Forgery in Elementor Plugin Affecting 2 Million+ Sites(25.09.2026 um 11:31 Uhr)
••
IT Security NachrichtenWheatley to Orelien: Racist Information Warfare Targets Black Authors(28.09.2026 um 00:35 Uhr)
•
IT Security NachrichtenMeta Petal Undersea Cable Colonizes France(28.09.2026 um 10:32 Uhr)
••••
IT Security NachrichtenWie aus dem Lager eine smarte Logistikplattform wird(28.09.2026 um 06:55 Uhr)
•
AI & KI NachrichtenKI übernimmt den Netzwerkbetrieb(28.09.2026 um 14:35 Uhr)
•
IT Security NachrichtenKinder und KI - Ist analog das "neue Bio"?(26.09.2026 um 13:05 Uhr)
•
Sicherheitslücken (CVE)Cross-Site Request Forgery in Elementor Plugin Affecting 2 Million+ Sites(25.09.2026 um 11:31 Uhr)
••
IT Security NachrichtenWheatley to Orelien: Racist Information Warfare Targets Black Authors(28.09.2026 um 00:35 Uhr)
•
IT Security NachrichtenMeta Petal Undersea Cable Colonizes France(28.09.2026 um 10:32 Uhr)
••••
Intelligence View
⚡ tsecurity.de Intelligence

🔧 GitLab CI/CD — The Complete Guide

🚀 Why GitLab CI/CD Over Jenkins and GitHub Actions? Feature GitLab CI/CD Jenkins GitHub Actions Integrated UI ✅ Built-in ❌ Plugin-based ✅ Built-in Auto DevOps ✅ Native support ❌ Manual ❌ Kubernetes Deployment ✅ First-class ✅ Wi…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




🚀 Why GitLab CI/CD Over Jenkins and GitHub Actions?












































Feature GitLab CI/CD Jenkins GitHub Actions
Integrated UI ✅ Built-in ❌ Plugin-based ✅ Built-in
Auto DevOps ✅ Native support ❌ Manual ❌
Kubernetes Deployment ✅ First-class ✅ With plugins ✅ Beta level
Security (Secrets, SAST, DAST) ✅ Built-in ❌ Manual config ⚠️ External
Runners Management ✅ Docker/Machine/K8s ✅ Nodes ✅ Hosted/self-hosted





Why choose GitLab CI/CD?




  • Everything in one place (version control + CI/CD)


  • Great for GitOps and K8s-based workflows


  • Easy syntax, strong security model


  • No plugin hell like Jenkins










📁 Pipeline Basics



'# Comments'

Use # to write inline documentation.




# This job builds the project
build:
script:
- echo "Compiling..."









stages

Defines the execution order of jobs.




stages:
- build
- test
- deploy









stage

Assigns a job to a defined stage.




test:
stage: test
script: echo "Running tests"










script

Commands that the job will execute.




build:
stage: build
script:
- make build










🔀 Multi-Jobs in a Stage




build_app:
stage: build
script: make app

build_api:
stage: build
script: make api










⏳ timeout

Job-level timeout.




test:
script: run_tests
timeout: 30 minutes










📌 needs – Optimizing Pipeline Dependency




deploy:
stage: deploy
script: deploy.sh
needs: [build]







Use when job depends on output from another but not the full stage.






🧹 before_script and after_script




before_script:
- echo "Setup"

after_script:
- echo "Cleanup"







Used globally or at job level for pre/post commands.






📦 artifacts – Store Build Outputs




build:
script: make build
artifacts:
paths:
- dist/
expire_in: 1 week










🧬 variables – 5 Levels




  • Project-level: via GitLab UI → Settings → CI/CD → Variables

    Used across all jobs.


  • Global level:





variables:
ENV: production









  • Job-level:




test:
variables:
ENV: test
script: echo $ENV









  • Built-in:



$CI_PIPELINE_ID and $CI_COMMIT_BRANCH..............





  • From file:




variables:
CONFIG: config.yml









🛂 only and except (Deprecated → Use rules)




build:
script: build.sh
only:
- main










📜 rules, if, and when




test:
script: test.sh
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
when: always










🏃 Run File Inside Script




script:
- chmod +x ./deploy.sh
- ./deploy.sh









🔁 workflow – Pipeline Start Conditions




workflow:
rules:
- if: '$CI_COMMIT_BRANCH == "main"'
when: always
- when: never









🐳 image – Docker Environment




image: python:3.9

script:
- pip install -r requirements.txt









🔢 Matrix/Loops (via parallel:matrix)




job:
stage: test
parallel:
matrix:
- VARIANT: [A, B, C]
script:
- echo $VARIANT










🌐 Multi-Project Pipelines




trigger-downstream:
stage: trigger
trigger:
project: other-group/other-project
branch: main









📦 Downloading/Packaging in a Pipeline




build:
script:
- wget https://example.com/app.tar.gz
- tar -xzf app.tar.gz









⏰ Pipeline Scheduling

Go to GitLab UI → CI/CD → Schedules




workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "schedule"'
when: always









🏃 GitLab Runner Types











































Runner Type Description Use Case
Shared Runners Maintained by GitLab Quick use, limited config
Group Runners Shared by a group Org-level control
Project Runners Bound to a project Isolation, security
Docker Executor Containers Microservices, clean env
Shell Executor Host machine Full access needed
Kubernetes Executor Pods on K8s Cloud-native CI/CD
Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten 🔧 GitLab CI/CD — The Complete Guide

Thematisch verwandte Begriffe: GitLab, CICD, Complete, Guide · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

💬 Kommentare werden geladen…
Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-101073 | A security flaw has been discovered in Netcore NR289-GE 1.4.5102. Impac…
Advisory →
tsecurity.de Icon
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag