From 0aed87973be67f7f58b7d0677bc036918fb6ff44 Mon Sep 17 00:00:00 2001
From: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
Date: Wed, 18 May 2022 12:43:16 +0200
Subject: [PATCH] .gitlab-ci.yml: build and publish bundles for SECO B68

This expands automatic updates to the SECO B68 board. Both new jobs
re-use existing generic jobs and contain no new logic.

Signed-off-by: Zygmunt Krynicki <zygmunt.krynicki@huawei.com>
---
 .gitlab-ci.yml | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 3bb9cd0a..edae5fb0 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -93,6 +93,17 @@ bundle-raspberrypi4-64:
     CI_ONIRO_BUILD_FLAVOUR: linux
     CI_ONIRO_RECIPE_NAME: oniro-bundle-base
 
+# Build a RAUC update bundle for SECO B68
+bundle-seco-intel-b68:
+  extends: .build-rauc-bundle
+  stage: update
+  # Depend on the build job to prevent repeating build failures.
+  needs: [linux-seco-intel-b68]
+  variables:
+    MACHINE: seco-intel-b68
+    CI_ONIRO_BUILD_FLAVOUR: linux
+    CI_ONIRO_RECIPE_NAME: oniro-bundle-base
+
 .publish-rauc-bundle-to-hawkbit:
   image: zyga/hawkbitctl:latest-ubuntu
   # Use the deploy stage so that we only publish bundles to HawkBit if and only
@@ -183,6 +194,16 @@ publish-raspberrypi4-64:
     CI_ONIRO_RAUC_BUNDLE_NAME: oniro-bundle-base
     MACHINE: raspberrypi4-64
 
+publish-seco-intel-b68:
+  extends: .publish-rauc-bundle-to-hawkbit
+  dependencies: [bundle-seco-intel-b68]
+  needs: [bundle-seco-intel-b68]
+  variables:
+    CI_ONIRO_HAWKBIT_SWMOD_NAME: oniro-bundle-base-seco-intel-b68
+    CI_ONIRO_HAWKBIT_DS_NAME: oniro-image-base-seco-intel-b68
+    CI_ONIRO_RAUC_BUNDLE_NAME: oniro-bundle-base
+    MACHINE: seco-intel-b68
+
 .build-wic-image-daily:
   extends: .build-wic-image
   variables:
-- 
GitLab