aboutsummaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorNullptrderef <nullptrderef@proton.me>2024-06-16 14:18:53 +0200
committerNullptrderef <nullptrderef@proton.me>2024-06-16 14:18:53 +0200
commit76d077bbc0d352593acb91969497ce5327fc8b1b (patch)
tree1b3484054e4ad6380b9a6ec44815ef615358c33f /contrib
parent3b72fd64de79947a389d1c29198f0dd32ae41e5a (diff)
allow ARCH/CODENAME overwrites, aswell as CODENAME-ARCH ones
CODENAME-ARCH allows overwriting one pair without touching other ones in the same codename, or the same arch
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/ci/generate-jobs13
1 files changed, 9 insertions, 4 deletions
diff --git a/contrib/ci/generate-jobs b/contrib/ci/generate-jobs
index ee40d46c0..b76e76c83 100755
--- a/contrib/ci/generate-jobs
+++ b/contrib/ci/generate-jobs
@@ -54,11 +54,16 @@ for TARGET in "${BUILD_FOR[@]}"; do
export ARCH=$(awk '{print $3}' <<< "$TARGET");
export OCI_IMAGE="${DISTRO_IMAGES[$DISTRO]}";
export DISTRO_TARGET="$CI_DIR/targets/$DISTRO";
- if [[ -d "$DISTRO_TARGET/$CODENAME" ]]; then
- DISTRO_TARGET="$DISTRO_TARGET/$CODENAME";
- fi;
- if [[ -d "$DISTRO_TARGET/$ARCH" ]]; then
+ if [[ -d "$DISTRO_TARGET/$CODENAME-$ARCH" ]]; then
+ DISTRO_TARGET="$DISTRO_TARGET/$CODENAME-$ARCH";
+ elif [[ -d "$DISTRO_TARGET/$CODENAME/$ARCH" ]]; then
+ DISTRO_TARGET="$DISTRO_TARGET/$CODENAME/$ARCH";
+ elif [[ -d "$DISTRO_TARGET/$ARCH/$CODENAME" ]]; then
+ DISTRO_TARGET="$DISTRO_TARGET/$ARCH/$CODENAME";
+ elif [[ -d "$DISTRO_TARGET/$ARCH" ]]; then
DISTRO_TARGET="$DISTRO_TARGET/$ARCH";
+ elif [[ -d "$DISTRO_TARGET/$CODENAME" ]]; then
+ DISTRO_TARGET="$DISTRO_TARGET/$CODENAME";
fi;
export CONTAINERFILE="$DISTRO_TARGET/Containerfile";
export IDX=$BASE_IDX;