Giter Club home page Giter Club logo

concourse-cached-pipeline's Introduction

concourse-cached-pipeline

This is a demo setup to explore flexible caching of build artifacts (e.g. npm node_module folders or maven repositories) in a concourse pipeline. A detailed description of the approach used in this repo and how it works is available on our blog.

In short: We use a Task instead of a Resource to

  • find last parent commit id that changed package file (e.g. packages.json, pom.xml)
  • check cache for package tarball (http file server, but can swap in a different one)
  • if package tarball has not been built yet, invoke package manager to fetch packages and generate tarball
  • download and extract package tarball

The scripts should run in any standard docker image with a proper bash and curl, so you can easily incorporate them in your existing CI pipelines.

Update pipeline

fly -t ci set-pipeline -c ci/pipeline.yml --load-vars-from ci/credentials.yml -p concourse-cached-pipeline

Execute task with local inputs

fly -t ci execute --config ci/cache-a.yml --input repo=. --exclude-ignore

concourse-cached-pipeline's People

Contributors

johannesrudolph avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

chzmnky

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.