mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-02 10:13:52 +08:00
CI: Normalize file permissions (#29584)
* normalize file permissions * comment * add comment * remove that * shell * should be on the top
This commit is contained in:
5
.github/workflows/selfdrive_tests.yaml
vendored
5
.github/workflows/selfdrive_tests.yaml
vendored
@@ -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
|
||||
|
||||
7
.github/workflows/setup/action.yaml
vendored
7
.github/workflows/setup/action.yaml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user