Skip to content

Commit

Permalink
fixing build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
silkroadnomad committed Dec 21, 2024
1 parent 4174c87 commit 4a6a967
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
uses: hoverkraft-tech/[email protected]
with:
compose-file: "docker-compose-test.yml"
up-flags: "--build --cache-from=type=local,src=/tmp/.buildx-cache --cache-to=type=local,dest=/tmp/.buildx-cache"
up-flags: "--build --file docker-compose-cache.json"
- name: Check Docker Containers
run: |
echo "🔍 Checking Docker Containers..."
Expand Down
15 changes: 15 additions & 0 deletions docker-compose-cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"target": {
"service-name": {
"cache-from": [
"type=registry,ref=ghcr.io/MY_GITHUB_ORG_NAME/service-name:cache"
],
"cache-to": [
"type=registry,ref=ghcr.io/MY_GITHUB_ORG_NAME/service-name:cache"
],
"output": [
"type=docker"
]
}
}
}

0 comments on commit 4a6a967

Please sign in to comment.