From 919588393f41b48cb6c5d832aa35e58a19b6762d Mon Sep 17 00:00:00 2001 From: Leon Anavi Date: Fri, 2 Oct 2026 18:44:55 +0300 Subject: [PATCH] entrypoint-build.sh: Fix bitbake branches bitbake uses version-numbered branches instead of release names. Use bitbake branch 2.18 for the Yocto Project release Wrynose. This work was sponsored by GOVCERT.LU. Signed-off-by: Leon Anavi --- .../docker-images/yocto-builder/entrypoint-build.sh | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh b/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh index 698f01c..b14f9ce 100755 --- a/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh +++ b/.github/workflows/docker-images/yocto-builder/entrypoint-build.sh @@ -29,8 +29,13 @@ REPOS=" \ https://git.yoctoproject.org/meta-yocto \ " for repo in $REPOS; do - log "Cloning $repo on branch $BASE_REF..." - git clone --depth 1 --branch "$BASE_REF" "$repo" + branch="$BASE_REF" + # bitbake uses version-numbered branches instead of release names + case "$repo:$BASE_REF" in + */bitbake:wrynose) branch="2.18" ;; + esac + log "Cloning $repo on branch $branch..." + git clone --depth 1 --branch "$branch" "$repo" done # shellcheck disable=SC1091,SC2240