Make SharedCode available inside Docker builds
Docker / Docker Build & Push (push) Failing after 1m14s
Docker / Docker Build & Push (push) Failing after 1m14s
This commit is contained in:
1 parent
bb6a7d0fed
commit
d9d31bc921
2 files changed
+9
-1
No files matched your search
@@ -48,6 +48,12 @@ jobs:
|
|||||||
sleep "$delay"
|
sleep "$delay"
|
||||||
done
|
done
|
||||||
|
|
||||||
|
- name: Prepare SharedCode Git mirror for Docker
|
||||||
|
working-directory: ${{ github.workspace }}
|
||||||
|
run: |
|
||||||
|
rm -rf SharedCode.git
|
||||||
|
git clone --bare --branch main --single-branch SharedCode SharedCode.git
|
||||||
|
|
||||||
# Multi-arch (arm64) is only built and published from main; other branches and PRs
|
# Multi-arch (arm64) is only built and published from main; other branches and PRs
|
||||||
# only need an amd64 build to validate they compile, which needs no emulation.
|
# only need an amd64 build to validate they compile, which needs no emulation.
|
||||||
- name: Set up QEMU (multi-arch builds)
|
- name: Set up QEMU (multi-arch builds)
|
||||||
|
|||||||
+3
-1
@@ -2,7 +2,9 @@ FROM node:22-alpine AS frontend-builder
|
|||||||
RUN apk add --no-cache git
|
RUN apk add --no-cache git
|
||||||
WORKDIR /frontend
|
WORKDIR /frontend
|
||||||
COPY frontend/package*.json ./
|
COPY frontend/package*.json ./
|
||||||
RUN for attempt in 1 2 3 4 5; do \
|
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" && \
|
||||||
|
for attempt in 1 2 3 4 5; do \
|
||||||
npm ci && break; \
|
npm ci && break; \
|
||||||
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
|
if [ "$attempt" -eq 5 ]; then exit 1; fi; \
|
||||||
delay=$((attempt * 5)); \
|
delay=$((attempt * 5)); \
|
||||||
|
|||||||
Reference in new issue
Block a user