Skip to content

Commit 2fb69ac

Browse files
23.10 lesson-3.md
Core concepts of GitLab CI/CD
1 parent 6c2fb17 commit 2fb69ac

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.gitlab-ci.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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"

Course/lesson-2.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## Introduction to CI/CD and GitLab:
1+
## Introduction to CI/CD and GitLab
22

33
### What is CI/CD:
44
1. CD part (3 stages): Continuous Deployment (or Continuous Delivery) = Development + Testing + Production

Course/lesson-3.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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

0 commit comments

Comments
 (0)