From b49e4b4b1884c1c65028f2f4737183fcf92a3979 Mon Sep 17 00:00:00 2001 From: Mikhail Lobanov Date: Wed, 14 Oct 2026 22:17:45 +0300 Subject: [PATCH] Limit container CPU and memory --- .gitea/workflows/ci.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index bac7d4a..3f3c38a 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -74,6 +74,8 @@ jobs: --read-only \ --cap-drop=ALL \ --security-opt=no-new-privileges:true \ + --memory=256m \ + --cpus=0.5 \ -p 127.0.0.1:8000:8000 \ "$IMAGE"; then echo "New container started" @@ -85,6 +87,8 @@ jobs: --read-only \ --cap-drop=ALL \ --security-opt=no-new-privileges:true \ + --memory=256m \ + --cpus=0.5 \ -p 127.0.0.1:8000:8000 \ "$OLD_IMAGE" exit 1 @@ -113,6 +117,8 @@ jobs: --read-only \ --cap-drop=ALL \ --security-opt=no-new-privileges:true \ + --memory=256m \ + --cpus=0.5 \ -p 127.0.0.1:8000:8000 \ "$OLD_IMAGE" exit 1