Skip to content

Commit

Permalink
Merge pull request #1302 from simonbaird/build-all-platform-arches
Browse files Browse the repository at this point in the history
Build all platform arches
  • Loading branch information
simonbaird authored Jan 22, 2024
2 parents 85c9d3d + eef8251 commit 5010a91
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Dockerfile.dist
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ FROM brew.registry.redhat.io/rh-osbs/openshift-golang-builder:rhel_9_1.21@sha256
ARG TARGETOS
ARG TARGETARCH

# Adjust as required
ARG BUILD_LIST="linux_amd64 darwin_amd64 windows_amd64 darwin_arm64"
#ARG BUILD_LIST="linux_amd64 darwin_amd64 windows_amd64 darwin_arm64 linux_arm64 linux_ppc64le"
ARG BUILD_LIST="darwin_amd64 darwin_arm64 linux_amd64 linux_arm64 linux_ppc64le linux_s390x windows_amd64"

WORKDIR /build

Expand Down Expand Up @@ -87,7 +85,8 @@ RUN \
for os_arch in ${BUILDS}; do \
export GOOS="${os_arch%_*}"; \
export GOARCH="${os_arch#*_}"; \
BINFILE="ec_${GOOS}_${GOARCH}"; \
[ "$GOOS" = "windows" ] && DOT_EXE=".exe" || DOT_EXE=""; \
BINFILE="ec_${GOOS}_${GOARCH}${DOT_EXE}"; \
echo "Building ${BINFILE} for ${EC_FULL_VERSION}"; \
go build \
-trimpath \
Expand Down

0 comments on commit 5010a91

Please sign in to comment.