Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache bundle gems not working #14

Closed
jeffreytse opened this issue Mar 26, 2021 · 1 comment
Closed

Cache bundle gems not working #14

jeffreytse opened this issue Mar 26, 2021 · 1 comment
Assignees
Labels
bug Something isn't working verified This issue was already verified

Comments

@jeffreytse
Copy link
Owner

Since getting OS name from /etc/os-release and saving to the bundle's folder is always failed, this causes caching bundle gems not working.

@jeffreytse jeffreytse added bug Something isn't working verified This issue was already verified labels Mar 26, 2021
@jeffreytse jeffreytse self-assigned this Mar 26, 2021
@jeffreytse
Copy link
Owner Author

jeffreytse commented Mar 26, 2021

We can use a CACHE_VERSION secrect for better updating the cache as below code snippet.

# Use GitHub Actions' cache to cache dependencies on servers
- uses: actions/cache@v2
  with:
    path: vendor/bundle
    key: ${{ runner.os }}-gems-${{ secrets.CACHE_VERSION }}-${{ hashFiles('**/Gemfile.lock') }}
    restore-keys: |
      ${{ runner.os }}-gems-

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working verified This issue was already verified
Projects
None yet
Development

No branches or pull requests

1 participant