File tree Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Expand file tree Collapse file tree 3 files changed +33
-1
lines changed Original file line number Diff line number Diff line change 1+ run_tests :
2+ before_script :
3+ - echo "Preparing test data..."
4+ script :
5+ - echo "Running tests..."
6+ after_script :
7+ - echo "Cleaning up temporary files..."
8+
9+ build_image :
10+ script :
11+ - echo "Building the Docker image..."
12+ - echo "Tagging the Docker image..."
13+
14+ push_image :
15+ script :
16+ - echo "Logging into Docker registry..."
17+ - echo "Pushing Docker image to registry"
Original file line number Diff line number Diff line change 1- ## Introduction to CI/CD and GitLab:
1+ ## Introduction to CI/CD and GitLab
22
33### What is CI/CD:
441 . CD part (3 stages): Continuous Deployment (or Continuous Delivery) = Development + Testing + Production
Original file line number Diff line number Diff line change 1+ ## Core concepts of GitLab CI/CD
2+
3+ ### Pipeline is scripted:
4+ 1 . Whole logic is scripted in YAML format (.gitlab-ci.yml)
5+ 1 . This file contains the whole CI/CD pipeline configuration
6+ 2 . Jobs
7+ 1 . The most basic building block of the GitLab CI/CD pipeline
8+ 2 . It is a step in that pipeline (define what to do)
9+ 3 . You can define arbitrary names for your jobs
10+ 4 . Must contain at least the script clause
11+ 5 . script specify the commands to execute
12+ 3 . Pipeline (\GitLabCICD\. gitlab-ci.yml):
13+ 1 . run_tests
14+ 2 . build_image
15+ 3 . push_image
You can’t perform that action at this time.
0 commit comments