projects/aports·commit 0c6992cd

ci: dynamically add ci-large tag to certain jobs

0c6992cd · Kevin Daudt <[email protected]> · 2026-01-21 21:13:36 +00:00

Add the config to dynamically add the `ci-large` tag to x86_64 jobs
depending on what has changed in the merge request.

Builds are already dynamically generated though the `pipeline generate`
command. The rules for that command are stored in
.gitlab/job-config.yaml. Until now, this config was empty, meaning the
existing .gitlab-ci.yml file was used as is.

Now we add some rules, specifically for chromium, and merge requests
that change 5 or more APKBUILDs. In those cases, the `ci-large` tag is
added to jobs for `x86_64`, were we have some larger servers that accept
jobs with that tag.
Commit
0c6992cd04c143daab541f1e1b5a8ff977acc7d8
Parents
5971f3ab

Changes

1 files changed · +16 −0

FileStatusAddDelContent
.gitlab/job-config.yamlmodified+16−0View file

.gitlab/job-config.yaml

View file
diff --git a/.gitlab/job-config.yaml b/.gitlab/job-config.yaml
index e69de29..87b1a95 100644
--- a/.gitlab/job-config.yaml
+++ b/.gitlab/job-config.yaml
@@ -0,0 +1,16 @@
+# Dertain packages require a lot of resources
+- conditions:
+ changed_aports:
+ - chromium
+ job_conditions:
+ - has_tag: x86_64
+ actions:
+ add_tags: [ci-large]
+
+# Larger rebuilds
+- conditions:
+ nr_changes: 5
+ job_conditions:
+ - has_tag: x86_64
+ actions:
+ add_tags: [ci-large]