mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-28 04:47:37 -07:00
[docker] Build with immutable lockfile and cache
This commit is contained in:
parent
a5b072016a
commit
64cffd2d68
2 changed files with 2 additions and 2 deletions
|
@ -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 a new issue