inject env variables into Dockerfile
@@ -14,16 +14,17 @@ RUN go mod download
COPY . ./
# Build
+RUN make generate
RUN CGO_ENABLED=0 GOOS=linux GOARCH=amd64 GO111MODULE=on go build -a -o manager main.go
# Use distroless as minimal base image to package the manager binary
# Refer to https://github.com/GoogleContainerTools/distroless for more details
FROM gcr.io/distroless/static:latest
-ENV AZURE_SUBSCRIPTION_ID ""
-ENV AZURE_TENANT_ID ""
-ENV AZURE_CLIENT_ID ""
-ENV AZURE_CLIENT_SECRET ""
-ENV REQUEUE_AFTER ""
+ENV AZURE_CLIENT_ID "${AZURE_CLIENT_ID}"
+ENV AZURE_CLIENT_SECRET "{AZURE_CLIENT_SECRET}"
+ENV AZURE_SUBSCRIPTION_ID "${AZURE_SUBSCRIPTION_ID}"
+ENV AZURE_TENANT_ID "${AZURE_TENANT_ID}"
+ENV REQUEUE_AFTER "30"
WORKDIR /
COPY --from=builder /workspace/manager .
ENTRYPOINT ["/manager"]
