Use versioned shared module and registry credentials
Tests / Go backend (push) Failing after 57s
Tests / Dashboard checks (push) Failing after 55s
Lint / Lint (push) Failing after 55s
Docker / Docker Build & Push (push) Failing after 59s

This commit is contained in:
Gabriel20xx committed 2026-08-06 09:44:57 +02:00
1 parent b2ffa39148
commit a988fdee44
10 files changed
+70 -17

No files matched your search

+6 -3
View File
@@ -3,7 +3,7 @@ RUN apk add --no-cache git
WORKDIR /frontend
COPY frontend/package*.json ./
RUN --mount=type=bind,source=SharedCode.git,target=/tmp/SharedCode.git,readonly \
git config --global url."file:///tmp/SharedCode.git".insteadOf "https://repos.gfranz.ch/Gabriel20xx/SharedCode" && \
git config --global url."file:///tmp/SharedCode.git".insteadOf "https://repos.gfranz.ch/Gabriel20xx/shared" && \
for attempt in 1 2 3 4 5; do \
npm ci && break; \
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
@@ -17,8 +17,11 @@ RUN npm run build
FROM golang:1.26-alpine AS builder
WORKDIR /app
COPY backend/go.mod backend/go.sum ./
COPY SharedCode/backend/ /SharedCode/backend/
RUN go mod download
RUN --mount=type=secret,id=gitea_go_netrc,target=/root/.netrc,required \
GOPROXY="https://repos.gfranz.ch/api/packages/Gabriel20xx/go,https://proxy.golang.org" \
GONOSUMDB="repos.gfranz.ch/Gabriel20xx/shared/*" \
GOAUTH=netrc \
go mod download
COPY backend/*.go ./
COPY --from=frontend-builder /frontend/build ./web
RUN apk add --no-cache ca-certificates && \