From 458278929c1d5ca83d5f7100c653826b5db730cf Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Wed, 18 May 2022 13:52:56 +0200
Subject: [PATCH] .oniro-ci: run HawkBit publishing job on tag pipelines

This is consistent with the job which builds the bundles.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 .oniro-ci/build-generic.yaml | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/.oniro-ci/build-generic.yaml b/.oniro-ci/build-generic.yaml
index 2f677f8d..8dbb59ac 100644
--- a/.oniro-ci/build-generic.yaml
+++ b/.oniro-ci/build-generic.yaml
@@ -394,6 +394,8 @@
   rules:
     # Publishing is done only for scheduled builds
     - if: '$CI_PIPELINE_SOURCE == "schedule"'
+    # Run the job when a tag is placed.
+    - if: '$CI_COMMIT_TAG'
     # For merge requests, the publishing is optional and can be triggered manually.
     - if: '$CI_PIPELINE_SOURCE == "merge_request_event"'
       when: manual
-- 
GitLab