-
Notifications
You must be signed in to change notification settings - Fork 696
Closed as not planned
Labels
Description
Contributing guidelines
- I've read the contributing guidelines and wholeheartedly agree
I've found a bug, and:
- The documentation does not mention anything about my problem
- There are no open or closed issues that are related to my problem
Description
Since today, I cannot output the built image to a local directory. This worked yesterday, so I'm not quite sure what is causing the problem.
I use the outputs option to copy the built images to the local runner as a way to copy the release assets out of the image.
- name: Build and push
id: build
uses: docker/build-push-action@v6
with:
context: ./
file: ${{ matrix.dockerfile }}
push: ${{ inputs.publish_release }}
platforms: ${{ steps.prepare.outputs.platforms }}
build-args: |
BRANCH=${{ steps.prepare.outputs.branch }}
BUILD_DATE=${{ steps.prepare.outputs.build_date }}
BUILD_VERSION=${{ inputs.release_version }}
COMMIT=${{ inputs.release_commit }}
CLONE_URL=${{ steps.prepare.outputs.clone_url }}
RELEASE=${{ inputs.publish_release }}
tags: ${{ steps.prepare.outputs.tags }}
cache-from: type=local,src=/tmp/.buildx-cache
cache-to: type=local,dest=/tmp/.buildx-cache
outputs: 'type=local,dest=image'Expected behaviour
Copy image files out of built image as it did before.
Actual behaviour
Cannot copy files out of image, permission denied.
Repository URL
Workflow run URL
YAML workflow
https://github.com/LizardByte/.github/blob/master/.github/workflows/__call-docker.yml called from https://github.com/LizardByte/Sunshine/blob/2259141bd2493eb1b88e74469e0784fcef06a3e0/.github/workflows/ci.yml#L56Workflow logs
#33 [sunshine 6/6] WORKDIR /home/lizard
#33 DONE 0.0s
#34 exporting to client directory
#34 copying files
#34 copying files 3.36MB 0.0s done
#34 ERROR: error from receiver: failed to symlink image/etc/ca-certificates/extracted/cadir/002c0b4f.0: symlink GlobalSign_Root_R46.pem image/etc/ca-certificates/extracted/cadir/002c0b4f.0: permission denied
------
> exporting to client directory:
------
ERROR: failed to build: failed to solve: error from receiver: failed to symlink image/etc/ca-certificates/extracted/cadir/002c0b4f.0: symlink GlobalSign_Root_R46.pem image/etc/ca-certificates/extracted/cadir/002c0b4f.0: permission denied
BuildKit logs
Additional info
I just started extracting the full image using outputs a few days ago, but it definitely worked. I am not sure if this failure is due to some weird change in the arch linux base image or what. Any guidance/solution would be appreciated. I'd be happy to provide any more details if necessary.