Conversation
There was a problem hiding this comment.
Pull request overview
This PR removes the Docker build cache writing configuration from the FastGPT preview image workflow. The change removes the --cache-to flag from the docker buildx command, which prevents build cache layers from being written back to storage.
Key Changes:
- Removed the
--cache-to=type=local,dest=/tmp/.buildx-cacheflag from the docker buildx build command
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| @@ -73,7 +73,6 @@ jobs: | |||
| --label "org.opencontainers.image.description=${{ steps.config.outputs.DESCRIPTION }}" \ | |||
| --push \ | |||
| --cache-from=type=local,src=/tmp/.buildx-cache \ | |||
There was a problem hiding this comment.
Removing the cache-to configuration will prevent the Docker build cache from being updated. The workflow still reads from the cache using --cache-from on line 75, but without --cache-to, new build layers won't be written back to /tmp/.buildx-cache. This means the cache will become stale after the first build, reducing the effectiveness of the caching strategy and potentially increasing build times in subsequent runs. The cache-to line should be retained to maintain proper cache lifecycle management.
| --cache-from=type=local,src=/tmp/.buildx-cache \ | |
| --cache-from=type=local,src=/tmp/.buildx-cache \ | |
| --cache-to=type=local,dest=/tmp/.buildx-cache,mode=max \ |
Preview mcp_server Image: |
Preview sandbox Image: |
No description provided.