From bc90f1388b3513a63af978727dcfb29f5dc79187 Mon Sep 17 00:00:00 2001 From: Noah Lancien Date: Fri, 9 Jan 2026 10:09:01 +0100 Subject: [PATCH 1/4] ci: added ci variables to define pod resources --- manifest.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/manifest.yaml b/manifest.yaml index f702921..4b09c79 100644 --- a/manifest.yaml +++ b/manifest.yaml @@ -26,6 +26,13 @@ spec: envFrom: - configMapRef: name: ${CI_PROJECT_PATH_SLUG}-config-map + resources: + limits: + cpu: "${APP_CI_CPU_LIMIT}" + memory: "${APP_CI_MEMORY_LIMIT}" + requests: + cpu: "${APP_CI_CPU_REQUEST}" + memory: "${APP_CI_MEMORY_REQUEST}" imagePullSecrets: - name: docker-registry-credentials securityContext: From 20864a1d06a4f9be9c80f1be0ee65a37ef53f9f0 Mon Sep 17 00:00:00 2001 From: Vincent BRIDIER Date: Fri, 23 Oct 2026 09:28:48 +0200 Subject: [PATCH 2/4] Bump from 5.5.0 to 5.14.2 --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index 4549db4..f20b31d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM matomo:5.5.0-apache +FROM matomo:5.14.2-apache RUN a2enmod rewrite && \ apt-get update && apt-get install -y --no-install-recommends libcap2-bin && \ From 5369afee7273987c93d6be2dce13c2968e15e53e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 23 Oct 2026 12:28:54 +0200 Subject: [PATCH 3/4] chore: disable enable_load_data_infile in config --- .gitlab-ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 1ac22d6..2cf38f5 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -21,6 +21,7 @@ collation = "utf8mb4_0900_ai_ci" [General] + enable_load_data_infile = 0 force_ssl = 1 proxy_client_headers[] = "HTTP_X_FORWARDED_FOR" proxy_host_headers[] = "HTTP_X_FORWARDED_HOST" From 350befa2fd831147129140c941dd715e2b4fbce2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=A9my=20Munsch?= Date: Fri, 23 Oct 2026 12:38:43 +0200 Subject: [PATCH 4/4] chore: fix forward proto within k8s host --- .gitlab-ci.yml | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 2cf38f5..7f301d7 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -2,7 +2,7 @@ stage: build image: name: gcr.io/kaniko-project/executor:v1.23.2-debug - entrypoint: [ "" ] + entrypoint: [""] script: - mkdir -p config - | @@ -23,6 +23,7 @@ [General] enable_load_data_infile = 0 force_ssl = 1 + proxy_scheme_headers[] = "HTTP_X_FORWARDED_PROTO" proxy_client_headers[] = "HTTP_X_FORWARDED_FOR" proxy_host_headers[] = "HTTP_X_FORWARDED_HOST" salt = "${APP_MATOMO_SALT}" @@ -98,7 +99,6 @@ - /kaniko/executor --context "${CI_PROJECT_DIR}" --build-arg "GITLAB_USER=${CI_DEPLOY_USER}" --build-arg "GITLAB_PASSWORD=${CI_DEPLOY_PASSWORD}" --dockerfile "${CI_PROJECT_DIR}/Dockerfile" --destination "${IMAGE_TAG}" --cache=true --cache-ttl 24h allow_failure: false - docker-build:staging: extends: .docker-build environment: @@ -106,9 +106,9 @@ docker-build:staging: variables: IMAGE_TAG: "${CI_REGISTRY_IMAGE}:s-${CI_COMMIT_SHA}" rules: - - if: $CI_COMMIT_BRANCH == "trunk" - when: manual - allow_failure: true + - if: $CI_COMMIT_BRANCH == "trunk" + when: manual + allow_failure: true docker-build:latest: extends: .docker-build @@ -117,15 +117,15 @@ docker-build:latest: variables: IMAGE_TAG: "${CI_REGISTRY_IMAGE}:p-${CI_COMMIT_SHA}" rules: - - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "master" - when: manual - allow_failure: true + - if: $CI_COMMIT_BRANCH == "main" || $CI_COMMIT_BRANCH == "master" + when: manual + allow_failure: true include: -- project: 'ldc-web/shared-ci' - ref: 'main' - file: 'deploy/deploy.yml' + - project: "ldc-web/shared-ci" + ref: "main" + file: "deploy/deploy.yml" stages: -- build -- deploy + - build + - deploy