Skip to content

Commit 6be6034

Browse files
committed
Exclude non-community trunk builds from promotion
Only promote trunk builds from community releases (Armbian_community_*trunk*). Exclude trunk builds from os/distribution repos (nightly builds). Signed-off-by: Igor Pecovnik <igor@armbian.com>
1 parent ad8f9c5 commit 6be6034

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/generate-armbian-images-json.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ is_promoted_candidate() {
385385
is_promoted() {
386386
local image_name="$1" board_slug="$2" url="$3"
387387

388+
# Never promote trunk builds unless from community
389+
[[ "$image_name" == *trunk* && "$image_name" != Armbian_community*trunk* ]] && return 1
390+
388391
local rel_dl="${url#https://dl.armbian.com/}"
389392
local rel_cache="${url#https://cache.armbian.com/artifacts/}"
390393
local rel_github="${url#https://github.com/armbian/}"

0 commit comments

Comments
 (0)