]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
gitlab-ci: Fix building debian 32bit images
authorAndreas Schneider <asn@samba.org>
Tue, 26 Nov 2024 18:38:40 +0000 (19:38 +0100)
committerAndreas Schneider <asn@cryptomilk.org>
Wed, 27 Nov 2024 16:32:07 +0000 (16:32 +0000)
Trying to pull registry-1.docker.io/i386/debian:12...
Error: creating build container: choosing an image from manifest list
docker://registry-1.docker.io/i386/debian:12: no image found in image index for
architecture "amd64", variant "", OS "linux"

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Wed Nov 27 16:32:07 UTC 2024 on atb-devel-224

.gitlab-ci-main.yml
bootstrap/.gitlab-ci.yml
bootstrap/config.py
bootstrap/generated-dists/debian11-32bit/Dockerfile
bootstrap/sha1sum.txt

index fca228d9af24f6c5baafb07f812d14676caf213a..a4bfc48d6bae7b27af6af91fd5d0d251a069763c 100644 (file)
@@ -47,7 +47,7 @@ variables:
   # Set this to the contents of bootstrap/sha1sum.txt
   # which is generated by bootstrap/template.py --render
   #
-  SAMBA_CI_CONTAINER_TAG: b86ed4890ab0f95b15d3f3b11d1cd21327ac045f
+  SAMBA_CI_CONTAINER_TAG: d101907857587b6421907c45676497c336d45ea7
   #
   # We use the ubuntu2204 image as default as
   # it matches what we have on atb-devel-224
index 1d0ca0246dafda60b5cd8325c51be2a30f882f8e..0b37863d35ad721862450191fb7706e532cc7ef6 100644 (file)
@@ -10,6 +10,7 @@
   variables:
     SAMBA_CI_IS_BROKEN_IMAGE: "no"
     SAMBA_CI_TEST_JOB: "samba-o3"
+    SAMBA_CI_PLATFORM: "linux/amd64"
   before_script:
     # install prerequisites
     - dnf install -qy diffutils
@@ -27,7 +28,7 @@
   script: |
     set -xueo pipefail
     ci_image_name=samba-ci-${CI_JOB_NAME}
-    podman build -t ${ci_image_name} --build-arg SHA1SUM=${SAMBA_CI_CONTAINER_TAG} bootstrap/generated-dists/${CI_JOB_NAME}
+    podman build --platform ${SAMBA_CI_PLATFORM} --tag ${ci_image_name} --build-arg SHA1SUM=${SAMBA_CI_CONTAINER_TAG} bootstrap/generated-dists/${CI_JOB_NAME}
     ci_image_path="${SAMBA_CI_CONTAINER_REGISTRY}/${ci_image_name}"
     timestamp=$(date +%Y%m%d%H%M%S)
     container_hash=$(podman image inspect --format='{{ .Id }}' ${ci_image_name} | cut -c 1-9)
@@ -105,6 +106,7 @@ debian11-32bit:
   extends: .build_image_template
   variables:
     SAMBA_CI_TEST_JOB: "samba-32bit"
+    SAMBA_CI_PLATFORM: "linux/i386"
 
 rocky8:
   extends: .build_image_template
index 465e9157169ced162156f0d1778928097aff8711..e7c0a0deb51fa0b73c93df5d9aad2a45a658e6ff 100644 (file)
@@ -461,7 +461,7 @@ DEB_DISTS = {
         }
     },
     'debian11-32bit': {
-        'docker_image': 'registry-1.docker.io/i386/debian:11',
+        'docker_image': 'debian:11',  # specify the platform in .gitlab-ci.yaml
         'vagrant_box': 'debian/bullseye32',
         'replace': {
             'language-pack-en': '',   # included in locales
index d0133bd41c68bab0f6e1cd0ea29eb4953de2f6e5..90a961f5345725cea6573b614fa04edc26c9f85c 100644 (file)
@@ -3,7 +3,7 @@
 # See also bootstrap/config.py
 #
 
-FROM registry-1.docker.io/i386/debian:11
+FROM debian:11
 
 # pass in with --build-arg while build
 ARG SHA1SUM
index 7c18889773acbdeb32ce9ae39b37c41fbbdf4f84..401c5fda44b97cd52438a05a83bb501bb5b4c95f 100644 (file)
@@ -1 +1 @@
-b86ed4890ab0f95b15d3f3b11d1cd21327ac045f
+d101907857587b6421907c45676497c336d45ea7