chore: make the restored docker cache mounts writable (#32882)
This commit is contained in:
parent
f0e2dd39d3
commit
52ab97c939
1 changed files with 6 additions and 0 deletions
6
.github/actions/docker-cache/action.yml
vendored
6
.github/actions/docker-cache/action.yml
vendored
|
|
@ -32,6 +32,12 @@ runs:
|
|||
${{ runner.os }}-docker-mounts-${{ inputs.cache-scope }}-
|
||||
${{ runner.os }}-docker-mounts-main-
|
||||
|
||||
# the go module cache restores read-only, which fails the dance's cleanup
|
||||
# of the source directory after injection
|
||||
- name: Make cache mounts writable
|
||||
shell: bash
|
||||
run: test -d .docker-cache && chmod -R u+w .docker-cache || true
|
||||
|
||||
- name: Inject cache mounts
|
||||
uses: reproducible-containers/buildkit-cache-dance@5422eac04292c961a382e0f584ea0f03ad9da723 # v3.4.0
|
||||
with:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue