CI: Normalize file permissions (#29584)

* normalize file permissions

* comment

* add comment

* remove that

* shell

* should be on the top
old-commit-hash: da7504e1e7
beeps
Justin Newberry 2 years ago committed by GitHub
parent f7efad93e4
commit de7257c22c
  1. 5
      .github/workflows/selfdrive_tests.yaml
  2. 7
      .github/workflows/setup/action.yaml

@ -192,8 +192,9 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build Docker image
run: eval "$BUILD"
- uses: ./.github/workflows/setup
with:
git-lfs: false
- name: Push to container registry
run: |
$DOCKER_LOGIN

@ -32,6 +32,13 @@ runs:
restore-keys: |
scons-${{ env.CACHE_COMMIT_DATE }}-
scons-
# as suggested here: https://github.com/moby/moby/issues/32816#issuecomment-910030001
- id: normalize-file-permissions
shell: bash
name: Normalize file permissions to ensure a consistent docker build cache
run: |
find . -type f -executable -not -perm 755 -exec chmod 755 {} \;
find . -type f -not -executable -not -perm 644 -exec chmod 644 {} \;
# build our docker image
- shell: bash
run: eval ${{ env.BUILD }}

Loading…
Cancel
Save