-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ROX-25992: Add multiarch builds to CI - Manual manifest build (#48)
Co-authored-by: Marcin Owsiany <[email protected]>
- Loading branch information
Showing
3 changed files
with
144 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
FROM scratch | ||
COPY image-prefetcher / | ||
ARG ARCH=amd64 | ||
COPY ./image-prefetcher-${ARCH} /image-prefetcher | ||
ENTRYPOINT ["/image-prefetcher"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
binary-amd64: | ||
env CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -o image-prefetcher-amd64 -ldflags '-extldflags "-static"' . | ||
|
||
binary-arm64: | ||
env CGO_ENABLED=0 GOOS=linux GOARCH=arm64 go build -a -o image-prefetcher-arm64 -ldflags '-extldflags "-static"' . | ||
|
||
binary-ppc64le: | ||
env CGO_ENABLED=0 GOOS=linux GOARCH=ppc64le go build -a -o image-prefetcher-ppc64le -ldflags '-extldflags "-static"' . | ||
|
||
binary-s390x: | ||
env CGO_ENABLED=0 GOOS=linux GOARCH=s390x go build -a -o image-prefetcher-s390x -ldflags '-extldflags "-static"' . | ||
|
||
binary-all: binary-amd64 binary-arm64 binary-ppc64le binary-s390x |