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 <ndevos@redhat.com>
This commit is contained in:
Niels de Vos 2022-02-03 09:53:40 +01:00 committed by mergify[bot]
parent 50ac270360
commit fe922b8805

View File

@ -28,11 +28,14 @@
ceph-csi-canary" ceph-csi-canary"
}, },
test: { test: {
sh 'oc start-build --follow ceph-csi-test' sh 'oc start-build --follow \
--build-arg=GOARCH=amd64 \
ceph-csi-test'
}, },
devel: { devel: {
sh "oc start-build --follow \ sh "oc start-build --follow \
--build-arg=BASE_IMAGE='${base_image}' \ --build-arg=BASE_IMAGE='${base_image}' \
--build-arg=GOARCH=amd64 \
ceph-csi-devel" ceph-csi-devel"
} }
} }