Revert "perf: enable GHA cache for base image layers in Docker builds"

This reverts commit a378c0f913.
This commit is contained in:
DevContainer User
2026-03-03 16:48:47 +00:00
parent a378c0f913
commit d5338ab836
3 changed files with 2 additions and 13 deletions
+1 -3
View File
@@ -56,7 +56,5 @@ jobs:
push: ${{ github.event_name != 'pull_request' }} push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }} tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }} labels: ${{ steps.meta.outputs.labels }}
build-args: CACHE_BUST=${{ github.sha }} no-cache: true
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: linux/amd64 platforms: linux/amd64
+1 -3
View File
@@ -96,9 +96,7 @@ jobs:
with: with:
context: . context: .
push: true push: true
build-args: CACHE_BUST=${{ github.sha }} no-cache: true
cache-from: type=gha
cache-to: type=gha,mode=max
tags: | tags: |
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.tag }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.tag }}
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }} ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}:${{ steps.version.outputs.version }}
-7
View File
@@ -56,13 +56,6 @@ exec /usr/bin/google-chrome-stable \\\n\
"$@"\n' > /usr/local/bin/google-chrome && \ "$@"\n' > /usr/local/bin/google-chrome && \
chmod +x /usr/local/bin/google-chrome chmod +x /usr/local/bin/google-chrome
# --- Cache boundary ---
# Everything above here is deterministic (apt packages, fixed base image) and
# safe to serve from the Docker layer cache. Everything below fetches "latest"
# releases via curl, so a changing CACHE_BUST arg forces a rebuild from this
# point onward while still reusing the expensive base-image / apt layers.
ARG CACHE_BUST
# Install Claude Code native binary (npm wrapper breaks remote control) # Install Claude Code native binary (npm wrapper breaks remote control)
RUN curl -fsSL https://claude.ai/install.sh | bash && \ RUN curl -fsSL https://claude.ai/install.sh | bash && \
cp /root/.local/bin/claude /usr/local/bin/claude && \ cp /root/.local/bin/claude /usr/local/bin/claude && \