fixing docker and deployment instructions
All checks were successful
Mindforge Cronjob Build and Deploy / Build Mindforge Cronjob Image (push) Successful in 39s
Mindforge Cronjob Build and Deploy / Deploy Mindforge Cronjob (internal) (push) Successful in 44s

This commit is contained in:
2026-03-14 11:21:45 -03:00
parent 9ac593edfc
commit 3f4cbfd41d
2 changed files with 5 additions and 4 deletions

View File

@@ -14,9 +14,10 @@ COPY . .
# Build statically for Linux # Build statically for Linux
RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o mindforge-cronjob ./cmd/mindforge.cronjob RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} go build -o mindforge-cronjob ./cmd/mindforge.cronjob
# Use scratch to avoid QEMU: no foreign-arch commands to emulate # Use alpine to provide git (QEMU overhead for apk add is minimal)
FROM scratch FROM alpine:latest
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ RUN apk --no-cache add git ca-certificates openssh-client
COPY --from=builder /app/mindforge-cronjob /app/mindforge-cronjob COPY --from=builder /app/mindforge-cronjob /app/mindforge-cronjob
ENV GIT_REPOSITORY="" ENV GIT_REPOSITORY=""
ENV GEMINI_API_KEY="" ENV GEMINI_API_KEY=""

View File

@@ -4,7 +4,7 @@
```bash ```bash
kubectl create ns mindforge kubectl create ns mindforge
kubectl create secret generic mindforge-secrets \ kubectl create secret generic mindforge-secrets -n mindforge \
--from-literal=GIT_REPOSITORY="your_git_repository" \ --from-literal=GIT_REPOSITORY="your_git_repository" \
--from-literal=GEMINI_API_KEY="your_gemini_api_key" \ --from-literal=GEMINI_API_KEY="your_gemini_api_key" \
--from-literal=OPENAI_API_KEY="your_openai_api_key" \ --from-literal=OPENAI_API_KEY="your_openai_api_key" \