-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configuring pipeline to build Docker image for multiple architectures (…
…#1459) * Testing multiarch * Remove parameters * Testing another approach * Removing wrong command * Safing paths * Add debug command * Creating new builder * Working on a job * Fixing parameter * Moving stuff around * Testing retries * Testing build * Forgot about push * Disable attestations * Try flag * Commenting out extra archs
- Loading branch information
1 parent
1b5ad77
commit ef5ba35
Showing
2 changed files
with
125 additions
and
11 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,16 +1,19 @@ | ||
FROM gsoci.azurecr.io/giantswarm/alpine:3.20.3 AS binaries | ||
|
||
ARG KUBECTL_VERSION=1.24.2 | ||
ARG TARGETPLATFORM | ||
|
||
RUN apk add --no-cache ca-certificates curl \ | ||
&& mkdir -p /binaries \ | ||
&& curl -sSLf https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/linux/amd64/kubectl -o /binaries/kubectl \ | ||
&& curl -sSLf https://storage.googleapis.com/kubernetes-release/release/v${KUBECTL_VERSION}/bin/${TARGETPLATFORM}/kubectl -o /binaries/kubectl \ | ||
&& chmod +x /binaries/* | ||
|
||
FROM gsoci.azurecr.io/giantswarm/alpine:3.20.3 | ||
|
||
ARG TARGETARCH | ||
|
||
COPY --from=binaries /binaries/* /usr/bin/ | ||
COPY ./kubectl-gs /usr/bin/kubectl-gs | ||
COPY ./kubectl-gs-${TARGETARCH} /usr/bin/kubectl-gs | ||
RUN ln -s /usr/bin/kubectl-gs /usr/bin/kgs | ||
|
||
ENTRYPOINT ["kubectl-gs"] |