From 0284408a1563a9f4f66cc4ab1d95001c55e0906d Mon Sep 17 00:00:00 2001
From: Sebastiaan ten Pas <st981@cam.ac.uk>
Date: Tue, 18 Mar 2025 10:48:04 +0000
Subject: [PATCH] fix: specify local protobuf generator ci template to publish
 on tags

---
 .gitlab-ci.yml                                 | 1 +
 .gitlab/protobuf-generator-local.gitlab-ci.yml | 7 +++++++
 2 files changed, 8 insertions(+)
 create mode 100644 .gitlab/protobuf-generator-local.gitlab-ci.yml

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 9e4b6f3..b51dfd4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -1,5 +1,6 @@
 include:
   - local: "/.gitlab/protobuf-generator.gitlab-ci.yml"
+  - local: "/.gitlab/protobuf-generator-local.gitlab-ci.yml"
   - project: "uis/devops/continuous-delivery/ci-templates"
     file: "/auto-devops/common-pipeline.yml"
     ref: v6.7.2
diff --git a/.gitlab/protobuf-generator-local.gitlab-ci.yml b/.gitlab/protobuf-generator-local.gitlab-ci.yml
new file mode 100644
index 0000000..194ce96
--- /dev/null
+++ b/.gitlab/protobuf-generator-local.gitlab-ci.yml
@@ -0,0 +1,7 @@
+# *REPOSITORY LOCAL* specialisation of the protobuf generator templates.
+
+# Set rules for when we publish protobuf client packages.
+.protobuf:publish:base:
+  rules:
+    # We publish packages for all commits tagged with what looks like a version number.
+    - if: $CI_COMMIT_TAG =~ /[0-9]+\.[0-9]+\.+[0-9]+.*/
-- 
GitLab