forked from TrueCloudLab/frostfs-node
Stanislav Bogatyrev
573d920821
Until #139 is fixed, we can't use root inside Docker container running CI, but Woodpecker CI can't run non-root containers until they fix https://github.com/woodpecker-ci/woodpecker/issues/1077, hence we use temporary kludges with custom image and manual permissions in pipelines. Signed-off-by: Stanislav Bogatyrev <s.bogatyrev@yadro.com>
11 lines
321 B
YAML
11 lines
321 B
YAML
pipeline:
|
|
# Kludge for non-root containers under WoodPecker
|
|
fix-ownership:
|
|
image: alpine:latest
|
|
commands: chown -R 1234:1234 .
|
|
|
|
full-pre-commit:
|
|
image: git.frostfs.info/truecloudlab/frostfs-ci:v0.36
|
|
commands:
|
|
- export HOME="$(getent passwd $(id -u) | cut '-d:' -f6)"
|
|
- pre-commit run -a
|