outposts: fix git hash not being set in outposts

Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
Jens Langhammer 2021-07-21 21:31:25 +02:00
parent 39ad9d7c9d
commit e62f5a75e4
2 changed files with 6 additions and 4 deletions

View File

@ -15,8 +15,6 @@ RUN docker-entrypoint.sh generate \
# Stage 2: Build # Stage 2: Build
FROM golang:1.16.6 AS builder FROM golang:1.16.6 AS builder
ARG GIT_BUILD_HASH
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
WORKDIR /go/src/goauthentik.io WORKDIR /go/src/goauthentik.io
@ -28,6 +26,9 @@ RUN go build -o /go/ldap ./cmd/ldap
# Stage 3: Run # Stage 3: Run
FROM gcr.io/distroless/base-debian10:debug FROM gcr.io/distroless/base-debian10:debug
ARG GIT_BUILD_HASH
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
COPY --from=builder /go/ldap / COPY --from=builder /go/ldap /
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:4180/akprox/ping" ] HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:4180/akprox/ping" ]

View File

@ -15,8 +15,6 @@ RUN docker-entrypoint.sh generate \
# Stage 2: Build # Stage 2: Build
FROM golang:1.16.6 AS builder FROM golang:1.16.6 AS builder
ARG GIT_BUILD_HASH
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
WORKDIR /go/src/goauthentik.io WORKDIR /go/src/goauthentik.io
@ -28,6 +26,9 @@ RUN go build -o /go/proxy ./cmd/proxy
# Stage 3: Run # Stage 3: Run
FROM gcr.io/distroless/base-debian10:debug FROM gcr.io/distroless/base-debian10:debug
ARG GIT_BUILD_HASH
ENV GIT_BUILD_HASH=$GIT_BUILD_HASH
COPY --from=builder /go/proxy / COPY --from=builder /go/proxy /
HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:4180/akprox/ping" ] HEALTHCHECK CMD [ "wget", "--spider", "http://localhost:4180/akprox/ping" ]