mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-22 04:03:49 +01:00
[docker] Build with immutable lockfile and cache
This commit is contained in:
parent
a5b072016a
commit
64cffd2d68
@ -20,7 +20,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
cd /iceshrimp
|
cd /iceshrimp
|
||||||
cp -Tr /iceshrimp-caches/yarn .yarn
|
cp -Tr /iceshrimp-caches/yarn .yarn
|
||||||
yarn
|
yarn --immutable --immutable-cache
|
||||||
rm -rf /iceshrimp-caches/yarn/* && cp -Tr .yarn /iceshrimp-caches/yarn
|
rm -rf /iceshrimp-caches/yarn/* && cp -Tr .yarn /iceshrimp-caches/yarn
|
||||||
- name: Build the shrimp
|
- name: Build the shrimp
|
||||||
run: |
|
run: |
|
||||||
|
@ -13,7 +13,7 @@ COPY . ./
|
|||||||
RUN --mount=type=cache,target=/iceshrimp/.yarncache cp -Tr .yarncache .yarn
|
RUN --mount=type=cache,target=/iceshrimp/.yarncache cp -Tr .yarncache .yarn
|
||||||
|
|
||||||
# Configure corepack and install dev mode dependencies for compilation
|
# Configure corepack and install dev mode dependencies for compilation
|
||||||
RUN corepack enable && corepack prepare --activate && yarn
|
RUN corepack enable && corepack prepare --activate && yarn --immutable --immutable-cache
|
||||||
|
|
||||||
# Save yarn cache
|
# Save yarn cache
|
||||||
RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache
|
RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache
|
||||||
|
Loading…
Reference in New Issue
Block a user