Hello,
I'm trying to upload a saved docker image to downloads.
The file is found since it passes the check on pipe.py line 39, but I get a permission denied on pipe.py line 45.
--- the error ---
<span>Traceback (most recent call last):</span><span> File "/pipe.py", line 78, in <module></span><span> <a href="http://pipe.run/" target="_blank" rel="noopener nofollow noreferrer">pipe.run</a>()</span><span> File "/pipe.py", line 45, in run</span><span> with open(filename, 'rb') as f:</span><span>PermissionError: [Errno 13] Permission denied: 'pigeon-web-13'</span>
--- the config ---
default:
- step:
caches:
- docker
services:
- docker
script:
- ./scripts/build.sh $BITBUCKET_BUILD_NUMBER
- pipe: atlassian/bitbucket-upload-file:0.1.2
variables:
BITBUCKET_USERNAME: $BITBUCKET_USERNAME
BITBUCKET_APP_PASSWORD: $BITBUCKET_APP_PASSWORD
FILENAME: pigeon-web-$BITBUCKET_BUILD_NUMBER
--- the script ---
The build script does not chown or chmod the file.
The image file is created with a simple
docker save
Would you help me understand how I can make the file accessible to the pipe?
Thanks,