Azure / Azure/static-web-apps-cli

'EACCES: permission denied' when trying to deploy via docker and 'swa deploy'

Đang mở
#601 1 bình luận 0 reaction 1 người được giao Được @sgollapudi77 nhận Xem trên GitHub
command: deploy scope: deploy-client
Ngôn ngữ chính
TypeScript
Star
668
Fork
155
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

**Describe the bug**
I am trying to deploy my (pre-built) static website via `swa`CLI tool using woodpecker-CI and the `swacli/static-web-apps-cli:latest` docker image.
However, on execution I get an `EACCES` error:
```
✖ Deployment Failed :(
✖ Deployment Failure Reason: EACCES: permission denied, mkdir '/root/.swa/deploy/1.0.020981'
```

**To Reproduce**
execute the following within the CI environment using the above mentioned docker container:
```
swa deploy ./public --verbose=silly
```

**Expected behavior**
Either there should be a way to manually set the (temp) folder that is causing the permission error, or the docker image should be altered to allow writing to the folder.

**Screenshots**
image

**Additional context**
The pipeline that is being run can be found at https://codeberg.org/lauralani/www-lauka-net/src/commit/fbd65ab17caa51b0b9f129505cf335edca6bb947/.woodpecker.yml , and the full output of the pipeline run that's failing - including the debug output of `swa deploy --verbose=silly` can be found at https://ci.codeberg.org/lauralani/www-lauka-net/pipeline/4/4

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.