Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
Signed-off-by: Vince Prignano <vincepri@redhat.com>
  • Loading branch information
vincepri committed Apr 5, 2024
1 parent 1ada3c7 commit b000ca4
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions .github/workflows/tools-releases.yml
Expand Up @@ -47,6 +47,7 @@ jobs:
with:
context: .
file: ./hack/tools/envtest/${{matrix.os}}/Dockerfile
platforms: "${{matrix.os}}/${{matrix.arch}}"
build-args: |
KUBERNETES_VERSION=v${{env.KUBERNETES_VERSION}}
OS=${{matrix.os}}
Expand Down
4 changes: 2 additions & 2 deletions hack/tools/envtest/darwin/Dockerfile
Expand Up @@ -19,7 +19,7 @@
# - kubectl (fetch)
# - etcd (fetch)

FROM golang:1.21 as builder
FROM golang:1.21 --platform=local as builder

# Version and platform args.
ARG KUBERNETES_VERSION
Expand Down Expand Up @@ -63,7 +63,7 @@ RUN tar -czvf /kubebuilder_${OS}_${ARCH}.tar.gz kubebuilder/

# Copy tarball to final image.
ARG ARCH
FROM gcr.io/distroless/static:nonroot-${ARCH}
FROM gcr.io/distroless/static:nonroot

# Platform args.
ARG OS=darwin
Expand Down
6 changes: 3 additions & 3 deletions hack/tools/envtest/linux/Dockerfile
Expand Up @@ -19,8 +19,7 @@
# - kubectl (fetch)
# - etcd (fetch)

# no need for anything fancy
FROM alpine:3.19 as builder
FROM golang:1.21 --platform=local as builder

# Version and platform args.
ARG KUBERNETES_VERSION
Expand All @@ -32,7 +31,8 @@ ARG ARCH
ENV DEST=/usr/local/kubebuilder/bin/

# Install dependencies.
RUN apk add --no-cache curl && \
RUN apt update && \
apt install unzip rsync -y && \
mkdir -p $DEST

# kube-apiserver
Expand Down
2 changes: 1 addition & 1 deletion hack/tools/envtest/windows/Dockerfile
Expand Up @@ -19,7 +19,7 @@
# - kubectl (fetch)
# - etcd (fetch)

FROM golang:1.21 as builder
FROM golang:1.21 --platform=local as builder

# Version and platform args.
ARG KUBERNETES_VERSION
Expand Down

0 comments on commit b000ca4

Please sign in to comment.