-
-
Notifications
You must be signed in to change notification settings - Fork 7
Test caching docker images #311
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -31,6 +31,11 @@ jobs: | |||||
| develop | ||||||
| ${{ github.base_ref }} | ||||||
|
|
||||||
| - name: Cache Docker Images | ||||||
| uses: ScribeMD/docker-cache@0.5.0 | ||||||
| with: | ||||||
| key: ${{ github.ref_name }} | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🏁 Script executed: cat -n .github/workflows/checks.ymlRepository: FAForever/gitops-stack Length of output: 1183 🏁 Script executed: find . -name "Tiltfile" -o -name "Dockerfile*" | head -20Repository: FAForever/gitops-stack Length of output: 77 🏁 Script executed: # Check what Docker image definitions exist
fd -t f -e Dockerfile -o -name "Tiltfile" | head -20Repository: FAForever/gitops-stack Length of output: 297 🏁 Script executed: # Get repository structure overview
git ls-files | grep -E "(Tiltfile|Dockerfile)" | head -20Repository: FAForever/gitops-stack Length of output: 75 🏁 Script executed: git ls-files | grep -i dockerfileRepository: FAForever/gitops-stack Length of output: 48 🏁 Script executed: # Also check if there are any Dockerfile variants
find . -type f \( -iname "dockerfile*" \) 2>/dev/nullRepository: FAForever/gitops-stack Length of output: 48 🌐 Web query:
💡 Result: ScribeMD/docker-cache does not have any special “hashFiles support” parameter. What it does support is using GitHub Actions expression functions (like hashFiles) yourself when you set the action’s required input Citations:
🏁 Script executed: cat -n Tiltfile | head -100Repository: FAForever/gitops-stack Length of output: 5443 🏁 Script executed: cat Tiltfile | grep -i "docker\|image" | head -30Repository: FAForever/gitops-stack Length of output: 433 🏁 Script executed: # Check the full Tiltfile size and content
wc -l TiltfileRepository: FAForever/gitops-stack Length of output: 79 🏁 Script executed: cat Tiltfile | grep -E "docker_build|image:|load\(|local_resource" | head -20Repository: FAForever/gitops-stack Length of output: 754 🏁 Script executed: # Check if there are any Docker image references or build definitions
rg "image:" Tiltfile -A 2 -B 2 | head -40Repository: FAForever/gitops-stack Length of output: 48 🏁 Script executed: # Search for docker_build or any image building directives
rg "docker_build|load\(" TiltfileRepository: FAForever/gitops-stack Length of output: 48 🏁 Script executed: # Check the .github/workflows/checks.yml workflow more carefully for what gets cached
cat -n .github/workflows/checks.yml | tail -20Repository: FAForever/gitops-stack Length of output: 674 🏁 Script executed: # Look for any Helm chart references that might define docker images
find . -name "values*.yaml" -o -name "Chart.yaml" | head -10Repository: FAForever/gitops-stack Length of output: 359 🏁 Script executed: # Check what the tilt ci command does - look for references in Tiltfile
rg "ci\|CI" Tiltfile | head -10Repository: FAForever/gitops-stack Length of output: 48 🏁 Script executed: # Look at Helm values to see what images are being pulled
head -50 ./apps/faf-api/values.yamlRepository: FAForever/gitops-stack Length of output: 100 🏁 Script executed: # Check if Tiltfile has any references to pulling/loading docker images
rg "pull|load|docker" Tiltfile -i | head -20Repository: FAForever/gitops-stack Length of output: 2775 🏁 Script executed: # Get a broader view of what Helm charts are used
find ./apps -name "values*.yaml" -type f | wc -lRepository: FAForever/gitops-stack Length of output: 69 🏁 Script executed: # Check if Helm values or Chart files change between branches might require cache invalidation
ls -la ./apps/*/values*.yaml | head -5Repository: FAForever/gitops-stack Length of output: 458 🏁 Script executed: # Verify the scope of Helm chart usage
rg "helm_with_build_cache\|k8s_yaml" Tiltfile | wc -lRepository: FAForever/gitops-stack Length of output: 68 Include configuration files in Docker cache key to prevent stale images across branches. The Docker cache key currently depends only on Suggested patch- key: ${{ github.ref_name }}
+ key: docker-${{ github.ref_name }}-${{ hashFiles('Tiltfile') }}📝 Committable suggestion
Suggested change
🤖 Prompt for AI Agents |
||||||
|
|
||||||
| - name: Test Using Local Config | ||||||
| run: tilt ci --timeout "5m" | ||||||
|
|
||||||
|
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
What is the full commit SHA currently referenced by the GitHub Action tag ScribeMD/docker-cache@0.5.0?💡 Result:
The GitHub Action tag ScribeMD/docker-cache@0.5.0 currently points to commit SHA fb28c93772363301b8d0a6072ce850224b73f74e [1][2]. This SHA is shown on GitHub’s tag listing for 0.5.0 (short form fb28c93) [1] and as the full 40-character commit in a workflow that uses uses: ScribeMD/docker-cache@0.5.0 [2].
Citations:
Pin
ScribeMD/docker-cacheto the immutable commit SHA.Using
@0.5.0(a tag) is mutable and introduces supply-chain drift risk; CI behavior can change without code changes. Pin to the commit SHA instead.Suggested patch
📝 Committable suggestion
🤖 Prompt for AI Agents