diff --git a/hack/build-cluster-api.sh b/hack/build-cluster-api.sh index 150887c8f80..0b1ecb1b829 100644 --- a/hack/build-cluster-api.sh +++ b/hack/build-cluster-api.sh @@ -15,7 +15,9 @@ copy_cluster_api_to_mirror() { # Clean the mirror, but preserve the README file. rm -rf "${CLUSTER_API_MIRROR_DIR:?}/*.zip" - sync_envtest + if test "${SKIP_ENVTEST}" != y; then + sync_envtest + fi # Zip every binary in the folder into a single zip file. zip -j1 "${CLUSTER_API_MIRROR_DIR}/cluster-api.zip" "${CLUSTER_API_BIN_DIR}"/* diff --git a/images/baremetal/Dockerfile.ci b/images/baremetal/Dockerfile.ci index 84edcb59ae4..7dd44f05f12 100644 --- a/images/baremetal/Dockerfile.ci +++ b/images/baremetal/Dockerfile.ci @@ -7,6 +7,7 @@ FROM registry.ci.openshift.org/ocp/4.16:hyperkube AS kas FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder ARG TAGS="baremetal fipscapable" +ARG SKIP_ENVTEST="y" WORKDIR /go/src/github.com/openshift/installer COPY . . COPY --from=etcd /usr/bin/etcd /usr/bin/etcd diff --git a/images/installer-altinfra/Dockerfile.ci b/images/installer-altinfra/Dockerfile.ci index 6a503e1ee27..95957f2e2b5 100644 --- a/images/installer-altinfra/Dockerfile.ci +++ b/images/installer-altinfra/Dockerfile.ci @@ -15,7 +15,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.17 AS # FIPS support is offered via the baremetal-installer image ENV GO_COMPLIANCE_EXCLUDE=".*" ARG TAGS="altinfra" -ARG OPENSHIFT_INSTALL_CLUSTER_API="" +ARG SKIP_ENVTEST="y" WORKDIR /go/src/github.com/openshift/installer COPY . . COPY --from=kas-artifacts /usr/share/openshift/ cluster-api/bin/ diff --git a/images/installer-artifacts/Dockerfile.rhel b/images/installer-artifacts/Dockerfile.rhel index ba557696e75..a127b78706e 100644 --- a/images/installer-artifacts/Dockerfile.rhel +++ b/images/installer-artifacts/Dockerfile.rhel @@ -41,6 +41,7 @@ RUN GOOS=linux GOARCH=amd64 DEFAULT_ARCH="$(go env GOHOSTARCH)" hack/build.sh FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.17 AS linuxarmbuilder ENV GO_COMPLIANCE_EXCLUDE=".*" ARG TAGS="" +ARG SKIP_ENVTEST="y" WORKDIR /go/src/github.com/openshift/installer COPY . . COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/linux_arm64 terraform/bin/linux_arm64 diff --git a/images/installer/Dockerfile.ci b/images/installer/Dockerfile.ci index ec4459d5546..89e8dafd7ab 100644 --- a/images/installer/Dockerfile.ci +++ b/images/installer/Dockerfile.ci @@ -10,6 +10,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.17 AS # FIPS support is offered via the baremetal-installer image ENV GO_COMPLIANCE_EXCLUDE=".*" ARG TAGS="" +ARG SKIP_ENVTEST="y" WORKDIR /go/src/github.com/openshift/installer COPY . . COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/ diff --git a/images/installer/Dockerfile.upi.ci b/images/installer/Dockerfile.upi.ci index 3b7830e2329..2e43eaacba1 100644 --- a/images/installer/Dockerfile.upi.ci +++ b/images/installer/Dockerfile.upi.ci @@ -11,6 +11,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS # FIPS support is offered via the baremetal-installer image ENV GO_COMPLIANCE_EXCLUDE=".*" ARG TAGS="" +ARG SKIP_ENVTEST="y" WORKDIR /go/src/github.com/openshift/installer COPY . . COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/ diff --git a/images/libvirt/Dockerfile.ci b/images/libvirt/Dockerfile.ci index 9b90ab507bb..72a6062db22 100644 --- a/images/libvirt/Dockerfile.ci +++ b/images/libvirt/Dockerfile.ci @@ -8,6 +8,7 @@ FROM registry.ci.openshift.org/ocp/4.16:hyperkube AS kas FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS builder ARG TAGS="libvirt fipscapable" +ARG SKIP_ENVTEST="y" WORKDIR /go/src/github.com/openshift/installer COPY . . COPY --from=etcd /usr/bin/etcd /usr/bin/etcd diff --git a/images/openstack/Dockerfile.ci b/images/openstack/Dockerfile.ci index aaab6433ef2..3071a98c3c3 100644 --- a/images/openstack/Dockerfile.ci +++ b/images/openstack/Dockerfile.ci @@ -9,6 +9,7 @@ FROM registry.ci.openshift.org/ocp/builder:rhel-9-golang-1.21-openshift-4.16 AS # FIPS support is offered via the baremetal-installer image ENV GO_COMPLIANCE_EXCLUDE=".*" ARG TAGS="" +ARG SKIP_ENVTEST="y" WORKDIR /go/src/github.com/openshift/installer COPY . . COPY --from=providers /go/src/github.com/openshift/installer/terraform/bin/ terraform/bin/