Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,3 +99,4 @@ jobs:
build-args: |
GIT_SHA=${{ steps.sha.outputs.short }}
BUILD_DATE=${{ github.event.head_commit.timestamp }}
FRONTEND_CACHE_BUST=${{ github.run_id }}
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,11 @@ ARG FRONTEND_REF=main
ARG FRONTEND_CACHE_BUST=""

WORKDIR /frontend
RUN git clone --depth 1 --branch "$FRONTEND_REF" "$FRONTEND_REPO" .
# Reference FRONTEND_CACHE_BUST so a changed value invalidates this layer's cache
# and forces a fresh clone of the frontend on each build (BuildKit only busts a
# layer when the RUN references the arg).
RUN echo "cache-bust: $FRONTEND_CACHE_BUST" && \
git clone --depth 1 --branch "$FRONTEND_REF" "$FRONTEND_REPO" .

# Install dependencies
RUN pnpm install --frozen-lockfile
Expand Down
Loading