I'm trying to build .deb package from the bitbucket pipeline but end up with this error msg.
dpkg-deb: error: control directory has bad permissions 777 (must be >=0755 and <=0775)
tried to change the folder's permission with 755 but it didn't help either. I also tried to build with different Debian docker images but nothing helped.
this is the bitbucket pipeline yaml I use.
image: debian:buster-slim
pipelines:
default:
- step:
name: Build dpkg and push to S3 bucket
image: debian:buster-slim
deployment: Test
caches:
- pip
script:
- apt-get update && apt-get install -y
- cd ..
- mkdir process-mgmt-svc
- cp -rp build/. process-mgmt-svc
- chmod 755 process-mgmt-svc
- dpkg-deb --build process-mgmt-svc
services:
- docker
debian
directory which containscontrol
(andrules
, and some other mandatory files as well as anything else related to the actual packaging).