File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 1414# See the License for the specific language governing permissions and
1515# limitations under the License.
1616
17- ARG TARGETARCH
18-
1917# Build IBM cloud controller manager binary
2018ARG golang_image
21- FROM ${golang_image} AS ccm-builder
22- ARG ARCH
19+ FROM --platform=$BUILDPLATFORM ${golang_image} AS ccm-builder
20+ ARG TARGETARCH
2321ARG POWERVS_CLOUD_CONTROLLER_COMMIT
2422WORKDIR /build
2523RUN git clone https://github.com/openshift/cloud-provider-powervs
26- RUN cd cloud-provider-powervs && git checkout $POWERVS_CLOUD_CONTROLLER_COMMIT && CGO_ENABLED=0 GOARCH=$ARCH go build \
24+ RUN cd cloud-provider-powervs && git checkout $POWERVS_CLOUD_CONTROLLER_COMMIT && CGO_ENABLED=0 GOARCH=$TARGETARCH go build \
2725 -ldflags "-s -w" -o /build/ibm-cloud-controller-manager .
2826
2927# Assemble the final image
You can’t perform that action at this time.
0 commit comments