File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1- FROM golang:1.23-alpine as builder
1+ FROM golang:1.23-alpine AS builder
22
33RUN apk update && apk add sqlite build-base git mercurial bash
44WORKDIR /build
55
66COPY . .
77RUN make static
8- RUN GRPC_HEALTH_PROBE_VERSION=v0.4.37 && \
8+ RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}' ) && \
99 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) && \
1010 chmod +x /bin/grpc_health_probe
1111
Original file line number Diff line number Diff line change 22# build opm images. See the configurations in .goreleaser.yaml
33# and .github/workflows/release.yaml.
44
5- FROM ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.37 as grpc_health_probe
5+ FROM ghcr.io/grpc-ecosystem/grpc-health-probe:v0.4.37 AS grpc_health_probe
66FROM gcr.io/distroless/static:debug
77COPY --from=grpc_health_probe /ko-app/grpc-health-probe /bin/grpc_health_probe
88COPY ["nsswitch.conf" , "/etc/nsswitch.conf" ]
Original file line number Diff line number Diff line change 1- FROM golang:1.23-alpine as builder
1+ FROM golang:1.23-alpine AS builder
22
33RUN apk update && apk add sqlite build-base git mercurial bash linux-headers
44WORKDIR /build
55
66COPY . .
77RUN make static
8- RUN GRPC_HEALTH_PROBE_VERSION=v0.4.37 && \
8+ RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}' ) && \
99 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) && \
1010 chmod +x /bin/grpc_health_probe
1111
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ WORKDIR /build
1414
1515COPY . .
1616RUN make static
17- RUN GRPC_HEALTH_PROBE_VERSION=v0.4.37 && \
17+ RUN GRPC_HEALTH_PROBE_VERSION=$(go list -m github.com/grpc-ecosystem/grpc-health-probe| awk '{print $2}' ) && \
1818 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) && \
1919 chmod +x /bin/grpc_health_probe
2020
You can’t perform that action at this time.
0 commit comments