Skip to content

Commit

Permalink
Merge pull request #29 from startersclan/fix/ci-don-t-use-cache-to-in…
Browse files Browse the repository at this point in the history
…-ci-builds-to-prevent-race-conditions-causing-docker-builds-to-fail

Fix (ci): Don't use `cache_to` in CI builds to prevent race conditions causing docker builds to fail
  • Loading branch information
leojonathanoh authored Nov 10, 2023
2 parents 7660a66 + 65ed635 commit 1a77307
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 16 deletions.
16 changes: 8 additions & 8 deletions docker-compose.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,26 @@ services:
build:
cache_from:
- type=local,src=/tmp/.buildx-cache-daemon
cache_to:
- type=local,dest=/tmp/.buildx-cache-daemon,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-daemon,mode=max

awards:
build:
cache_from:
- type=local,src=/tmp/.buildx-cache-daemon
cache_to:
- type=local,dest=/tmp/.buildx-cache-daemon,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-daemon,mode=max

web:
build:
cache_from:
- type=local,src=/tmp/.buildx-cache-web
cache_to:
- type=local,dest=/tmp/.buildx-cache-web,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-web,mode=max

heatmaps:
build:
cache_from:
- type=local,src=/tmp/.buildx-cache-web
cache_to:
- type=local,dest=/tmp/.buildx-cache-web,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-web,mode=max
16 changes: 8 additions & 8 deletions docker-compose.example.build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ services:
target: prod
cache_from:
- type=local,src=/tmp/.buildx-cache-daemon
cache_to:
- type=local,dest=/tmp/.buildx-cache-daemon,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-daemon,mode=max

awards:
build:
Expand All @@ -17,8 +17,8 @@ services:
target: prod
cache_from:
- type=local,src=/tmp/.buildx-cache-daemon
cache_to:
- type=local,dest=/tmp/.buildx-cache-daemon,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-daemon,mode=max

web:
build:
Expand All @@ -27,8 +27,8 @@ services:
target: prod
cache_from:
- type=local,src=/tmp/.buildx-cache-web
cache_to:
- type=local,dest=/tmp/.buildx-cache-web,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-web,mode=max

heatmaps:
build:
Expand All @@ -37,5 +37,5 @@ services:
target: prod
cache_from:
- type=local,src=/tmp/.buildx-cache-web
cache_to:
- type=local,dest=/tmp/.buildx-cache-web,mode=max
# cache_to:
# - type=local,dest=/tmp/.buildx-cache-web,mode=max

0 comments on commit 1a77307

Please sign in to comment.