From 74c367bfde0a6a378a5a3ff6f942d13acf72979d Mon Sep 17 00:00:00 2001 From: Andrii Sosiuk <andrii.sosiuk@seco.com> Date: Mon, 31 Mar 2025 13:32:38 +0200 Subject: [PATCH] Build image diff in manifest MRs as well --- manifest-pipeline-yocto.yml | 21 +++++++++++++++++++++ manifest-pipeline.yml | 1 + 2 files changed, 22 insertions(+) diff --git a/manifest-pipeline-yocto.yml b/manifest-pipeline-yocto.yml index bb43e10d..0ea609c2 100644 --- a/manifest-pipeline-yocto.yml +++ b/manifest-pipeline-yocto.yml @@ -108,3 +108,24 @@ fngsystem-pipeline: RELEASE_NAME_EXPRESSION: FNGSystem-${INTERIM_DR_VERSION} ARTIFACTS_PATH: build-*/tmp/deploy/images/**/* PACKAGE_TYPE: image + +report-image-diff: + extends: .infrastructure + stage: report-image-diff + timeout: 8h + rules: + # Do not run build if the "skip build" label is set on the merge request + - if: $CI_MERGE_REQUEST_LABELS =~ /skip build/ + when: never + - if: $CI_MERGE_REQUEST_IID + allow_failure: true + script: + - cd ${CI_PROJECT_DIR} + - .gitlab-ci/scripts/report_image_diff.py + --gitlab-url="${CI_SERVER_URL}" + --token="${GITBOT_TOKEN}" + --manifest-project="${TARGET_PROJECT}" + --project="${CI_PROJECT_ID}" + --mr-iid="${CI_MERGE_REQUEST_IID}" + --target-branch="${TARGET_BRANCH}" + --source-branch="integrate/${CI_PROJECT_NAME}/${CI_COMMIT_REF_NAME}/into/${TARGET_BRANCH}" diff --git a/manifest-pipeline.yml b/manifest-pipeline.yml index 685893d1..55022d83 100644 --- a/manifest-pipeline.yml +++ b/manifest-pipeline.yml @@ -8,6 +8,7 @@ include: stages: - manifest-pipeline - trigger + - report-image-diff - retrigger - build - artifacts -- GitLab