Migrate SharedCode consumers to Gitea packages
This commit is contained in:
1 parent
a988fdee44
commit
d4dce959f9
6 files changed
+3675
-3709
No files matched your search
+3
-4
@@ -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/ ./
|
||||
|
||||
Reference in new issue
Block a user