Migrate SharedCode consumers to Gitea packages
Docker / Docker Build & Push (push) Failing after 48s
Lint / Lint (push) Successful in 14s
Tests / Go backend (push) Failing after 15s
Tests / Dashboard checks (push) Successful in 17s

This commit is contained in:
Gabriel20xx committed 2026-08-06 12:22:44 +02:00
1 parent a988fdee44
commit d4dce959f9
6 files changed
+3675 -3709

No files matched your search

+3 -4
View File
@@ -1,14 +1,13 @@
FROM node:22-alpine AS frontend-builder
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/shared" && \
RUN --mount=type=cache,target=/root/.npm \
--mount=type=secret,id=gitea_npmrc,target=/root/.npmrc,required \
for attempt in 1 2 3 4 5; do \
npm ci && break; \
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
delay=$((attempt * 5)); \
echo "SharedCode npm install failed (attempt ${attempt}/5); retrying in ${delay}s..." >&2; \
echo "Gitea npm install failed (attempt ${attempt}/5); retrying in ${delay}s..." >&2; \
sleep "$delay"; \
done
COPY frontend/ ./