outposts: fix git hash not being set in outposts
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
39ad9d7c9d
commit
e62f5a75e4
|
@ -15,8 +15,6 @@ RUN docker-entrypoint.sh generate \
|
|||
|
||||
# Stage 2: Build
|
||||
FROM golang:1.16.6 AS builder
|
||||
ARG GIT_BUILD_HASH
|
||||
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
|
||||
|
||||
WORKDIR /go/src/goauthentik.io
|
||||
|
||||
|
@ -28,6 +26,9 @@ RUN go build -o /go/ldap ./cmd/ldap
|
|||
# Stage 3: Run
|
||||
FROM gcr.io/distroless/base-debian10:debug
|
||||
|
||||
ARG GIT_BUILD_HASH
|
||||
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
|
||||
|
||||
COPY --from=builder /go/ldap /
|
||||
|
||||
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:4180/akprox/ping" ]
|
||||
|
|
|
@ -15,8 +15,6 @@ RUN docker-entrypoint.sh generate \
|
|||
|
||||
# Stage 2: Build
|
||||
FROM golang:1.16.6 AS builder
|
||||
ARG GIT_BUILD_HASH
|
||||
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
|
||||
|
||||
WORKDIR /go/src/goauthentik.io
|
||||
|
||||
|
@ -28,6 +26,9 @@ RUN go build -o /go/proxy ./cmd/proxy
|
|||
# Stage 3: Run
|
||||
FROM gcr.io/distroless/base-debian10:debug
|
||||
|
||||
ARG GIT_BUILD_HASH
|
||||
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
|
||||
|
||||
COPY --from=builder /go/proxy /
|
||||
|
||||
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:4180/akprox/ping" ]
|
||||
|
|
Reference in New Issue