Skip to content

Commit

Permalink
FIX: cache folder permissions again
Browse files Browse the repository at this point in the history
  • Loading branch information
Paliak committed Jan 6, 2024
1 parent 18623c5 commit cda60aa
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,20 @@ jobs:
steps:
- name: Checkout HEAD
uses: actions/checkout@v4
- run: git fetch --depth=1
- name: Fetch Dev branch
run: git fetch --depth=1
- name: Get Dev branch HEAD hash
id: get-dev-ref
run: echo "devref=$(git rev-parse origin/dev)" >> $GITHUB_OUTPUT
- name: Create cache folder
run: mkdir /tmp/cache/
- name: Check if build cache exists
uses: actions/cache@v3
with:
path: /tmp
path: /tmp/cache/
key: ${{ steps.get-dev-ref.outputs.devref }}
- name: Make sure cache is readable by docker
run: chown -R nobody:nobody /tmp/cache && chmod -R 777 /tmp/cache
- name: Run build diff
run: docker-compose up busted-diff
run: CACHEDIR="/tmp/cache" docker-compose up busted-diff

2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ services:
working_dir: /workdir
volumes:
- ./:/workdir:ro
- /tmp:/cache
- "${CACHEDIR:-/tmp:/cache"

0 comments on commit cda60aa

Please sign in to comment.