Giter Club home page Giter Club logo

repull's Introduction

Repull

Repull automatically pulls and deploys releases from GitHub.

Usage

Repull requires a repull.yaml config file:

sources:
  - repo: user/repo
    deploy: |
      unzip -o -d /var/www/html my_release.zip

You may specify as many sources as you want. The deploy commands will be executed in the directory with your release assets.

You may also specify an optional interval in seconds to check for new releases:

sources:
  - repo: # ...
    interval: 3600 # check every hour

The interval defaults to 24 hours.

You may additionally specify one or multiple regex patterns (one per line) to match against the release asset names:

sources:
  - repo: # ...
    regex: |
      .*_windows.*
      .*_linux.*

Args

You may specify a custom config file path with the -c flag:

repull -c /somewhere/else/my_config.yaml

You may also ignore the current lock and run a one-time pull with the -n flag:

repull -n

Behaviour

Repull will run a loop for each repo in your config file.

When a network error is encountered, repull will continue its cycle as normal. This is to prevent faulty network connections from halting the entire process.

If a deploy script fails (exit code != 0), repull will exit with the same exit code. This is because we assume a failure in the deploy script means developer intervention is required. If youre deploy script may fail but you wish to continue, please handle those failures in the deploy script.

Logging

Repull logs to stdout and stderr. All actions have comprehensive logs with timestamps, log levels, and source repo names.

repull's People

Contributors

clragon avatar

Stargazers

Ilyas LEFEBVRE avatar

Watchers

 avatar  avatar

repull's Issues

asset regex selection

Users may not wish to download all assets for a given release.

For that reason, it should be possible to specify one or more regex patterns that are matched against asset names
to decide whether they should be downloaded.

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.