Skip to content

Commit 896eec0

Browse files
committed
fix: two-step git clone (clone branch, fetch tag, checkout) [skip-version]
1 parent 12288c9 commit 896eec0

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

Dockerfile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,9 @@ RUN --mount=type=cache,target=/home/lpb/.npm \
124124
RUN set -eux; \
125125
export PATH="/home/lpb/.npm-global/bin:${PATH}"; \
126126
mkdir -p /opt/pi-src && cd /opt/pi-src; \
127-
git clone --depth=1 --branch ${PI_REF} ${PI_FORK} .; \
127+
git clone --depth=1 --branch lpb-dev ${PI_FORK} .; \
128+
git fetch --depth=1 origin ${PI_REF}; \
129+
git checkout ${PI_REF}; \
128130
git config user.email "build@localpibox.dev"; \
129131
git config user.name "LocalPibox Build"; \
130132
npm install; \

0 commit comments

Comments
 (0)