From 76391284ff365586e3e85776c6634351261e3163 Mon Sep 17 00:00:00 2001
From: Nhan Luong <nhan.luongnguyen@vn.bosch.com>
Date: Tue, 7 Jan 2025 03:23:31 +0000
Subject: [PATCH] Update .gitlab-ci.yml limit resource use to avoid quota limit

---
 .gitlab-ci.yml | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index e12c723..bce7f63 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -30,6 +30,13 @@ build-hugo:
   artifacts:
     paths:
       - public
+  resources:
+    requests:
+      memory: 1Gi
+      cpu: 500m
+    limits:
+      memory: 1.5Gi
+      cpu: 750m
 
 push-modification:
   extends: .ef-git
@@ -58,3 +65,10 @@ push-modification:
     - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH
       # when: manual 
     - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH && $CI_PIPELINE_SOURCE == "schedule"
+  resources:
+    requests:
+      memory: 500Mi
+      cpu: 250m
+    limits:
+      memory: 1Gi
+      cpu: 500m
-- 
GitLab