GithubHelp home page GithubHelp logo

automattic / git-s3-cache-buildkite-plugin Goto Github PK

View Code? Open in Web Editor NEW
7.0 4.0 2.0 30 KB

Adds a pre-checkout hook that downloads a git mirror from S3 and uses it as part of the checkout process.

Shell 100.00%
buildkite-plugin

git-s3-cache-buildkite-plugin's Introduction

Git S3 Cache Buildkite Plugin

Adds a pre-checkout hook that downloads a git mirror from S3 and uses it as part of the checkout process.

Example

Add the following to your pipeline.yml:

steps:
  - command:
      - "yarn install"
      - "yarn run test"
    plugins:
      - automattic/git-s3-cache#v1.0.0:
          bucket: "my-s3-bucket"
          repo: "path-to-repo-in-s3/"

Configuration

Before using this plugin, you should have an S3 bucket set up in a format similar to:

my-bucket/
├── my-project/
│   ├── 2020-01-01-my-project.git
│   ├── 2020-01-03-my-project.git
│   ├── 2020-01-05-my-project.git

Or:

my-bucket/
├── my-project/
│   ├── 2000-01-01
│       ├── my-project.git
│   └── 2001-01-02
│       ├── my-project.git

Git mirrors must end in .git, and should be sorted alphabetically with the most recent mirror appearing last.

bucket (Required, string)

The S3 bucket containing your mirrors.

repo (Required, string)

The S3 path to the repo. For example my-org/my-project.

Developing

To run the tests:

docker-compose run --rm lint

Contributing

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

git-s3-cache-buildkite-plugin's People

Contributors

alisoftware avatar crazytonyli avatar jkmassel avatar mokagio avatar skoonin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

git-s3-cache-buildkite-plugin's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.