From fe922b8805c38e34cb5a3e243a8392a23a6b5c23 Mon Sep 17 00:00:00 2001 From: Niels de Vos Date: Thu, 3 Feb 2022 09:53:40 +0100 Subject: [PATCH] ci: pass GOARCH when building images in OpenShift It seems that regular jobs in the OpenShift environment fail with the following error: Missing GOARCH argument for building image, install Golang or run: make containerized-test GOARCH=amd64 This happens for both the `devel` and `test` image builds since December 13 when installing Golang in the container-images was added. Fixes: 8a3fe53e "ci: install arch specific go in Dockerfile.devel" Signed-off-by: Niels de Vos --- jobs/build-images.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/jobs/build-images.yaml b/jobs/build-images.yaml index c0d7fae10..97575995b 100644 --- a/jobs/build-images.yaml +++ b/jobs/build-images.yaml @@ -28,11 +28,14 @@ ceph-csi-canary" }, test: { - sh 'oc start-build --follow ceph-csi-test' + sh 'oc start-build --follow \ + --build-arg=GOARCH=amd64 \ + ceph-csi-test' }, devel: { sh "oc start-build --follow \ --build-arg=BASE_IMAGE='${base_image}' \ + --build-arg=GOARCH=amd64 \ ceph-csi-devel" } }