Skip to content

Commit

Permalink
Merge pull request #382 from hime/release-1.3
Browse files Browse the repository at this point in the history
Manual cherry pick of #368: Add platform flag to Golang binary to honor build platform
  • Loading branch information
hime authored Nov 13, 2024
2 parents 2d12698 + f4d6e80 commit e5a468d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/csi_driver/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

# Build driver go binary
FROM golang:1.22.4 as driver-builder
FROM --platform=$BUILDPLATFORM golang:1.22.4 as driver-builder

ARG STAGINGVERSION

Expand Down
2 changes: 1 addition & 1 deletion cmd/sidecar_mounter/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

# Build sidecar-mounter go binary
FROM golang:1.22.4 as sidecar-mounter-builder
FROM --platform=$BUILDPLATFORM golang:1.22.4 as sidecar-mounter-builder

ARG STAGINGVERSION

Expand Down
2 changes: 1 addition & 1 deletion cmd/webhook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
# limitations under the License.

# Build webhook go binary
FROM golang:1.22.4 as webhook-builder
FROM --platform=$BUILDPLATFORM golang:1.22.4 as webhook-builder

ARG STAGINGVERSION

Expand Down

0 comments on commit e5a468d

Please sign in to comment.