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 14
14
# See the License for the specific language governing permissions and
15
15
# limitations under the License.
16
16
17
- ARG TARGETARCH
18
-
19
17
# Build IBM cloud controller manager binary
20
18
ARG golang_image
21
- FROM ${golang_image} AS ccm-builder
22
- ARG ARCH
19
+ FROM --platform=$BUILDPLATFORM ${golang_image} AS ccm-builder
20
+ ARG TARGETARCH
23
21
ARG POWERVS_CLOUD_CONTROLLER_COMMIT
24
22
WORKDIR /build
25
23
RUN 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 \
27
25
-ldflags "-s -w" -o /build/ibm-cloud-controller-manager .
28
26
29
27
# Assemble the final image
You can’t perform that action at this time.
0 commit comments