diff --git a/registry.Dockerfile b/registry.Dockerfile index 0f3c729ec..5267a85aa 100644 --- a/registry.Dockerfile +++ b/registry.Dockerfile @@ -1,11 +1,11 @@ -FROM golang:1.23-alpine as builder +FROM golang:1.23-alpine AS builder RUN apk update && apk add sqlite build-base git mercurial bash WORKDIR /build COPY . . RUN make static -RUN GRPC_HEALTH_PROBE_VERSION=v0.4.28 && \ +RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}') && \ wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \ chmod +x /bin/grpc_health_probe diff --git a/release/goreleaser.opm.Dockerfile b/release/goreleaser.opm.Dockerfile index 10b2cffab..96c70d6d2 100644 --- a/release/goreleaser.opm.Dockerfile +++ b/release/goreleaser.opm.Dockerfile @@ -2,7 +2,7 @@ # build opm images. See the configurations in .goreleaser.yaml # and .github/workflows/release.yaml. -FROM ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.29 as grpc_health_probe +FROM ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.37 AS grpc_health_probe FROM gcr.io/distroless/static:debug COPY --from=grpc_health_probe /ko-app/grpc-health-probe /bin/grpc_health_probe COPY ["nsswitch.conf", "/etc/nsswitch.conf"] diff --git a/upstream-builder.Dockerfile b/upstream-builder.Dockerfile index 1e1c122ae..3dd263fc7 100644 --- a/upstream-builder.Dockerfile +++ b/upstream-builder.Dockerfile @@ -1,11 +1,11 @@ -FROM golang:1.23-alpine as builder +FROM golang:1.23-alpine AS builder RUN apk update && apk add sqlite build-base git mercurial bash linux-headers WORKDIR /build COPY . . RUN make static -RUN GRPC_HEALTH_PROBE_VERSION=v0.4.28 && \ +RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}') && \ wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \ chmod +x /bin/grpc_health_probe diff --git a/upstream-opm-builder.Dockerfile b/upstream-opm-builder.Dockerfile index f8c0d0755..c2e37ae3d 100644 --- a/upstream-opm-builder.Dockerfile +++ b/upstream-opm-builder.Dockerfile @@ -14,7 +14,7 @@ WORKDIR /build COPY . . RUN make static -RUN GRPC_HEALTH_PROBE_VERSION=v0.4.28 && \ +RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}') && \ wget -qO/bin/grpc_health_probe https://github.com/grpc-ecosystem/grpc-health-probe/releases/download/${GRPC_HEALTH_PROBE_VERSION}/grpc_health_probe-linux-$(go env GOARCH) && \ chmod +x /bin/grpc_health_probe