diff --git a/doc/ci/yaml/README.md b/doc/ci/yaml/README.md
index 4d280297dbbf7fe38a3b69ad6968d2723aae7187..d5f18831c18c9c5ce5312b375e82cb9e1f791bb5 100644
--- a/doc/ci/yaml/README.md
+++ b/doc/ci/yaml/README.md
@@ -424,6 +424,28 @@ artifacts:
   - binaries/
 ```
 
+You may want to create artifacts only for tagged releases to avoid filling the
+build server storage with temporary build artifacts.
+
+Create artifacts only for tags (`default-job` will not create artifacts):
+
+```yaml
+default-job:
+  script:
+    - mvn test -U
+  except:
+    - tags
+
+release-job:
+  script:
+    - mvn package -U
+  artifacts:
+    paths:
+    - target/*.war
+  only:
+    - tags
+```
+
 The artifacts will be send after a successful build success to GitLab, and will
 be accessible in the GitLab UI to download.