Skip to content

Fix Linux volume permissions #179

Fix Linux volume permissions

Fix Linux volume permissions #179

Workflow file for this run

name: OCV PR Linux
on:
pull_request:
branches:
- main
paths:
- '.github/workflows/OCV-PR-Linux.yaml'
# TODO: are following paths necessary?
- 'checkout-and-merge/*'
- 'configure-and-build/*'
- 'run-tests/*'
- 'scripts/runner.py'
- 'scripts/test-plan.json'
workflow_call:
inputs:
workflow_branch:
description: "Branch for ci-gha-workflow repository"
default: "main"
required: false
type: string
concurrency:
group: OCV-PR-Linux-${{ github.ref }}
cancel-in-progress: true
jobs:
FixFolders:
runs-on: fix-folders
defaults:
run:
shell: bash
container:
image: quay.io/opencv-ci/opencv-docs-22.04:20241202
volumes:
- /home/opencv-cn/git_cache:/opt/git_cache
- /home/opencv-cn/ci_cache/opencv:/opt/.ccache
- /home/opencv-cn/binaries_cache:/opt/binaries_cache
- /home/opencv-cn/dnn-models:/opt/dnn-models
options: '--user root:root'
steps:
- run: |
for f in /opt/dnn-models /opt/binaries_cache /opt/.ccache /opt/git_cache ; do
echo
echo "=== ${f} ==="
ls -laR "${f}" | grep root
chown -Rc 1000:1000 "${f}"
echo
done