aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-15 15:12:10 +0200
committerJan-Hendrik Willms <tleilax+studip@gmail.com>2025-09-15 15:12:10 +0200
commit3c747c7d8a3ba9972caff936144d102686386948 (patch)
tree8655eef9c232876513082c07d0748d20bc0fd7dc
parent1d23908f712376aea86bbd7842ed060fd4d01280 (diff)
ci: use variables for versions, fixes #5883
Closes #5883 Merge request studip/studip!4490
-rw-r--r--.gitlab-ci.yml20
1 files changed, 17 insertions, 3 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3731020..b9ce0ac 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,9 +1,23 @@
+spec:
+ inputs:
+ phpversion:
+ type: string
+ default: "8.1"
+ mariadbversion:
+ type: string
+ default: "10.2.7"
+ mysqlversion:
+ type: string
+ default: "8.0"
+
+---
+
workflow:
rules:
- if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
- if: '$CI_COMMIT_REF_PROTECTED == "true"'
-image: studip/studip:tests-php8.1
+image: studip/studip:tests-php$[[ inputs.phpversion ]]
variables:
FF_NETWORK_PER_BUILD: 1
@@ -78,10 +92,10 @@ stages:
.definitions:
mariadb-service: &mariadb-service
- - name: mariadb:10.2.7
+ - name: mariadb:$[[ inputs.mariadbversion ]]
command: [ "--sql_mode=","--character-set-client=utf8","--character-set-server=utf8","--collation-server=utf8_unicode_ci"]
mysql-service: &mysql-service
- - name: mysql:8.0
+ - name: mysql:$[[ inputs.mysqlversion ]]
command: [ "--sql_mode=","--character-set-server=utf8mb4","--collation-server=utf8mb4_general_ci"]
php-changed: &php-changed
- changes: