Skip to content

rpsadarangani/bash-cache-buildkite-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bash Cache Buildkite Plugin

A caching plugin that can be invoked from your build script

Example

For a directory structure that looks like:

my-project/
├── node_modules/
├── package.json
├── package-lock.json

Add the following to your pipeline.yml:

steps:
  - command: |
      # To persist the cache
      save_cache node_modules/ $(hash_file package-lock.json)

      # To restore the cache, if present
      restore_cache $(hash_file package-lock.json)

    plugins:
      - automattic/bash-cache#v1.0.0

Configuration

There are no configuration options for this plugin

Developing

To run the linter and tests:

docker-compose run --rm lint
docker-compose run --rm tests

Contributing

  1. Fork the repo
  2. Make the changes
  3. Run the tests
  4. Commit and push your changes
  5. Send a pull request

About

A caching plugin that can be invoked from your build script.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 93.1%
  • Ruby 6.9%