Skip to content
Snippets Groups Projects

Draft: .oniro-ci,gitlab-ci.yml: add support for publishing bundles to hawkbit

Closed Zygmunt Krynicki requested to merge feature/pi-bundle-publishing into kirkstone
1 file
+ 3
2
Compare changes
  • Side-by-side
  • Inline
+ 3
2
@@ -106,6 +106,7 @@ publish-raspberrypi4-64:
CI_ONIRO_RAUC_BUNDLE_NAME: oniro-bundle-base
MACHINE: raspberrypi4-64
script:
- env | grep HAWKBIT_
- test -n "${HAWKBIT_URL:-}" || (
echo "precondition failed - HAWKBIT_URL is not set."
&& exit 1 )
@@ -147,8 +148,8 @@ publish-raspberrypi4-64:
-modules "$CI_ONIRO_HAWKBIT_SWMOD_NAME:$BUNDLE_VERSION" \
-description "Automatic build from Oniro CI"
- hawkbitctl upload \
-m "$CI_ONIRO_HAWKBIT_SWMOD_NAME:$CI_ONIRO_HAWKBIT_SWMOD_VERSION" \
-a "$BUNDLE_FILE"
-m "$CI_ONIRO_HAWKBIT_SWMOD_NAME:$BUNDLE_VERSION" \
-a "${CI_PROJECT_DIR}/artifacts/images/${MACHINE}/$(readlink "${CI_PROJECT_DIR}/artifacts/images/${MACHINE}/${CI_ONIRO_RAUC_BUNDLE_NAME}-${MACHINE}.raucb")"
rules:
# There's no point in trying when we don't have credentials or instance URL.
- if: '$HAWKBIT_USERNAME == "" || $HAWKBIT_PASSWORD == "" || $HAWKBIT_URL == ""'
Loading