From 6599441cf3eb7afa6a4ac168ff0802680c85016c Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Thu, 8 May 2025 18:30:01 +0100 Subject: [PATCH 1/2] lmp/build-sdk-container: override the latest tag via an environment variable If the environment variable is present, use it as a tag when creating the container. The default is build with the tag latest and also with the corresponding version tag. Signed-off-by: Jose Quaresma --- lmp/build-sdk-container.sh | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/lmp/build-sdk-container.sh b/lmp/build-sdk-container.sh index ce65b7cb..53f09df4 100755 --- a/lmp/build-sdk-container.sh +++ b/lmp/build-sdk-container.sh @@ -3,7 +3,7 @@ HERE=$(dirname $(readlink -f $0)) source $HERE/../helpers.sh -TAG=$(git log -1 --format=%h) +LATEST=${LATEST:-latest} status Launching dockerd unset DOCKER_HOST @@ -18,11 +18,15 @@ for i in `seq 12` ; do done container="hub.foundries.io/lmp-sdk" -tagged="${container}:${TAG}" -latest="${container}:latest" +# override tag if passed as argument +tags="${LATEST}" +if [ "${tags}" == "latest" ]; then + # add latest tag + tags="$(git log -1 --format=%h) ${tags}" +fi docker_login - -run docker build -t ${tagged} -t ${latest} . -run docker push ${tagged} -run docker push ${latest} +for t in ${tags}; do + run docker build -t ${container}:${t} + run docker push ${container}:${t} +done From f74fe0dbf4c6a69dc7241a9989f71dd0ce00c5b5 Mon Sep 17 00:00:00 2001 From: Jose Quaresma Date: Fri, 9 May 2025 11:45:13 +0100 Subject: [PATCH 2/2] lmp/jobserv: use the lmp-sdk:next contianer on the main build job Signed-off-by: Jose Quaresma --- lmp/jobserv.yml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/lmp/jobserv.yml b/lmp/jobserv.yml index 2c5d718f..501192fc 100644 --- a/lmp/jobserv.yml +++ b/lmp/jobserv.yml @@ -251,9 +251,18 @@ triggers: OTA_LITE_TAG: 'main' AKLITE_TAG: promoted-main runs: + - name: lmp-sdk-next + host-tag: amd64 + container: foundries/dind-ci:19.03.9_b38f166 + privileged: true + params: + LATEST=next + script-repo: + name: fio + path: lmp/build-sdk-container.sh # images with no OTA - name: "{loop}" - container: hub.foundries.io/lmp-sdk + container: hub.foundries.io/lmp-sdk:next host-tag: amd64-partner-gcp-nocache loop-on: - param: MACHINE @@ -271,7 +280,7 @@ triggers: # mfgtool / uuu related build files - name: mfgtool-{loop} - container: hub.foundries.io/lmp-sdk + container: hub.foundries.io/lmp-sdk:next host-tag: amd64-partner-gcp-nocache loop-on: - param: MACHINE @@ -296,7 +305,7 @@ triggers: # wayland distro flavor - name: build-lmp-wayland-{loop} - container: hub.foundries.io/lmp-sdk + container: hub.foundries.io/lmp-sdk:next host-tag: amd64-partner-gcp-nocache loop-on: - param: MACHINE