From a600b441afd6082518b004f9332f8e7238355112 Mon Sep 17 00:00:00 2001 From: Imran Date: Thu, 9 Oct 2025 17:21:27 -0500 Subject: [PATCH 1/4] added a comment --- github-api-integration-module.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/github-api-integration-module.sh b/github-api-integration-module.sh index d94d2951..aec77f2d 100644 --- a/github-api-integration-module.sh +++ b/github-api-integration-module.sh @@ -46,3 +46,7 @@ else fi cat $TMPFILE + +######################################### +#End of the script +######################################### \ No newline at end of file From 6f2426dbbd634103d254c0914d9af1d7d8d6a7d6 Mon Sep 17 00:00:00 2001 From: Imran Date: Thu, 9 Oct 2025 21:08:50 -0500 Subject: [PATCH 2/4] added comment --- github-api-integration-module.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/github-api-integration-module.sh b/github-api-integration-module.sh index aec77f2d..63e45c7e 100644 --- a/github-api-integration-module.sh +++ b/github-api-integration-module.sh @@ -47,6 +47,6 @@ fi cat $TMPFILE -######################################### +######################################## #End of the script -######################################### \ No newline at end of file +######################################## \ No newline at end of file From 8c9f9cdd826b958ee9f03f4af09311c3252eedbc Mon Sep 17 00:00:00 2001 From: Imran Date: Thu, 9 Oct 2025 21:13:05 -0500 Subject: [PATCH 3/4] removed comment --- github-api-integration-module.sh | 4 ---- 1 file changed, 4 deletions(-) diff --git a/github-api-integration-module.sh b/github-api-integration-module.sh index 63e45c7e..d94d2951 100644 --- a/github-api-integration-module.sh +++ b/github-api-integration-module.sh @@ -46,7 +46,3 @@ else fi cat $TMPFILE - -######################################## -#End of the script -######################################## \ No newline at end of file From c41fa94d94595edcecc45d001e2458f15fb97924 Mon Sep 17 00:00:00 2001 From: maimran786 Date: Sun, 17 May 2026 12:10:31 -0400 Subject: [PATCH 4/4] add pods and replicasets with gitlab ci file --- .gitlab-ci.yml | 58 +++++++++++++++++++++++++++++++++++++ pods/nginx.yaml | 13 +++++++++ pods/pod.yaml | 10 +++++++ replicasets/replicaset.yaml | 21 ++++++++++++++ 4 files changed, 102 insertions(+) create mode 100644 .gitlab-ci.yml create mode 100644 pods/nginx.yaml create mode 100644 pods/pod.yaml create mode 100644 replicasets/replicaset.yaml diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml new file mode 100644 index 00000000..551cfa4b --- /dev/null +++ b/.gitlab-ci.yml @@ -0,0 +1,58 @@ +workflow: + name: "Test CI/CD pipeline" + +stages: + - build + - test + - docker + - deploy + +build_job: + stage: build + script: + - echo "Building the application..." + # Add your build commands here + tags: + - docker + +test_job: + stage: test + script: + - echo "Running tests..." + # Add your test commands here + tags: + - docker + +docker_build_job: + stage: docker + script: + - echo "Building Docker image..." + # Add your Docker build commands here + tags: + - docker +docker_test_job: + stage: docker + needs: [docker_build_job] + script: + - echo "Testing Docker image..." + # Add your Docker test commands here + tags: + - docker +docker_push_job: + stage: docker + needs: [docker_test_job] + script: + - echo "Pushing Docker image to registry..." + # Add your Docker push commands here + tags: + - docker + +deploy_job: + stage: deploy + script: + - echo "Deploying the application..." + # Add your deployment commands here + tags: + - docker + + \ No newline at end of file diff --git a/pods/nginx.yaml b/pods/nginx.yaml new file mode 100644 index 00000000..3db2bf5b --- /dev/null +++ b/pods/nginx.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Pod +metadata: + name: my-pod + labels: + app: nginx + env: production +spec: + containers: + - name: nginx-container + image: nginx:latest + ports: + - containerPort: 80 \ No newline at end of file diff --git a/pods/pod.yaml b/pods/pod.yaml new file mode 100644 index 00000000..b3086a1f --- /dev/null +++ b/pods/pod.yaml @@ -0,0 +1,10 @@ +apiVersion: v1 +kind: Pod +metadata: + name: my-pod +spec: + containers: + - name: my-container + image: my-image:latest + ports: + - containerPort: 80 diff --git a/replicasets/replicaset.yaml b/replicasets/replicaset.yaml new file mode 100644 index 00000000..5b6f90fa --- /dev/null +++ b/replicasets/replicaset.yaml @@ -0,0 +1,21 @@ +apiVersion: app/v1 +kind: ReplicaSet +metadata: + name: my-replicaset +spec: + replicas: 3 + selector: + matchLabels: + app: nginx + env: production + template: + metadata: + labels: + app: nginx + env: production + spec: + containers: + - name: nginx-container + image: nginx:latest + ports: + - containerPort: 80 \ No newline at end of file