mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-24 09:49:05 +01:00
[docker] Build with immutable lockfile and cache
This commit is contained in:
parent
a5b072016a
commit
64cffd2d68
@ -20,7 +20,7 @@ jobs:
|
||||
run: |
|
||||
cd /iceshrimp
|
||||
cp -Tr /iceshrimp-caches/yarn .yarn
|
||||
yarn
|
||||
yarn --immutable --immutable-cache
|
||||
rm -rf /iceshrimp-caches/yarn/* && cp -Tr .yarn /iceshrimp-caches/yarn
|
||||
- name: Build the shrimp
|
||||
run: |
|
||||
|
@ -13,7 +13,7 @@ COPY . ./
|
||||
RUN --mount=type=cache,target=/iceshrimp/.yarncache cp -Tr .yarncache .yarn
|
||||
|
||||
# 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
|
||||
RUN --mount=type=cache,target=/iceshrimp/.yarncache rm -rf .yarncache/* && cp -Tr .yarn .yarncache
|
||||
|
Loading…
Reference in New Issue
Block a user