File tree Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Expand file tree Collapse file tree 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -44,6 +44,12 @@ RUN npx lerna run build --scope lit-dev-api --stream && \
44
44
# Site content
45
45
COPY packages/lit-dev-content/ ./packages/lit-dev-content/
46
46
ARG PLAYGROUND_SANDBOX
47
+ # Kaniko doesn't include ARG values in the layer cache key. This is different to
48
+ # normal Docker behavior, which would invalidate anything after the ARG
49
+ # declaration if the value changes. So, we need to write it to the file system
50
+ # to force a cache invalidation. Otherwise, we might re-use the most recent
51
+ # Eleventy build output, even when the playground sandbox URL has changed.
52
+ RUN "cat $PLAYGROUND_SANDBOX > playground-sandbox"
47
53
RUN npx lerna run build --scope lit-dev-content --stream
48
54
49
55
# Run the web service on container startup.
You can’t perform that action at this time.
0 commit comments