Skip to content

Commit 7014647

Browse files
committed
hack/build.sh: skip terraform for altinfra or aro
When building the altinfra or ARO images, no terraform dependencies should be involved, so skip them in the build script.
1 parent 7224fdb commit 7014647

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hack/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ export CGO_ENABLED=0
4242
MODE="${MODE:-release}"
4343

4444
# Build terraform binaries before setting environment variables since it messes up make
45-
if test "${SKIP_TERRAFORM}" != y
45+
if test "${SKIP_TERRAFORM}" != y && ! (echo "${TAGS}" | grep -q -e 'aro' -e 'altinfra')
4646
then
4747
make -j8 -C terraform all
4848
copy_terraform_to_mirror # Copy terraform parts to embedded mirror.

0 commit comments

Comments
 (0)