Fixed deploy pipeline
Build and Deploy / build-and-deploy (push) Failing after 3m8s

This commit is contained in:
2026-05-21 08:34:41 +03:00
parent c64f086393
commit 2ec65f8223
2 changed files with 6 additions and 11 deletions
+4 -9
View File
@@ -34,15 +34,10 @@ RUN CGO_ENABLED=0 GOOS=linux go build -o server ./src/
# ================================ # ================================
# Stage 3: финальный образ # Stage 3: финальный образ
# ================================ # ================================
FROM alpine:3.19 FROM scratch
# нужен для корректной работы TLS и временных зон COPY --from=backend /app/server /server
RUN apk add --no-cache ca-certificates tzdata COPY --from=backend /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=backend /usr/share/zoneinfo /usr/share/zoneinfo
WORKDIR /app
COPY --from=backend /app/server ./server
EXPOSE 8080
ENTRYPOINT ["./server"] ENTRYPOINT ["./server"]
+2 -2
View File
@@ -5,8 +5,8 @@ COPY infra/webhook/ .
RUN go mod download && \ RUN go mod download && \
CGO_ENABLED=0 GOOS=linux go build -o webhook . CGO_ENABLED=0 GOOS=linux go build -o webhook .
FROM alpine:3.19 FROM scratch
RUN apk add --no-cache docker-cli ca-certificates
COPY --from=builder /app/webhook /webhook COPY --from=builder /app/webhook /webhook
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
EXPOSE 9001 EXPOSE 9001
ENTRYPOINT ["/webhook"] ENTRYPOINT ["/webhook"]