Skip to content

outstand/docker-cache-buildkite-plugin

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 

Docker Cache Buildkite Plugin Build status

A Buildkite plugin that lets you cache the contents of docker volumes.

⚠️ Requires an in-development version of the docker-compose buildkite plugin ⚠️

Example

docker-compose.yml:

version: "3.8"
services:
  rails:
    build: .
    volumes:
      - bundler-data:/usr/local/bundle

volumes:
  bundler-data:

pipeline.yml:

steps:
  - command: bundle install
    plugins:
      - docker-cache#v1.0.0:
          s3_bucket: my-cache-bucket
          keys:
            - v1-bundler-cache-{{ arch }}-{{ checksum "Gemfile.lock" }}
            - v1-bundler-cache-{{ arch }}
          save: true
          volumes:
            - bundler-data

      - docker-compose#v3.7.0:
          run: app

  - command: rspec spec
    plugins:
      - docker-cache#v1.0.0:
          s3_bucket: my-cache-bucket
          keys:
            - v1-bundler-cache-{{ arch }}-{{ checksum "Gemfile.lock" }}
            - v1-bundler-cache-{{ arch }}
          volumes:
            - bundler-data

      - docker-compose#v3.7.0:
          run: app

About

🐳 🏦 Cache/Restore the contents of docker volumes

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published