All Projects â†’ Taschendieb â†’ Autodeploy

Taschendieb / Autodeploy

🚀 Autodeploy is a small and highly customizable CLI-Tool to automatically deploy your git repo and execute arbitrary commands/scripts after a specific git action (e.g. push, merge, ...)

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Autodeploy

Laravel Shopify
A full-featured Laravel package for aiding in Shopify App development
Stars: ✭ 634 (+3070%)
Mutual labels:  webhook
Npm Check Updates
Find newer versions of package dependencies than what your package.json allows
Stars: ✭ 6,617 (+32985%)
Mutual labels:  npm
Showdown Htmlescape
Plugin for Showdown to prevent the use of arbitrary HTML and allow only the specific Markdown syntax.
Stars: ✭ 6 (-70%)
Mutual labels:  npm
Rando.js
The world's easiest, most powerful random function.
Stars: ✭ 659 (+3195%)
Mutual labels:  npm
Lerna
Splitting up large codebases into separate independently versioned packages is extremely useful for code sharing. However, making changes across many repositories is messy and difficult to track, and testing across repositories becomes complicated very quickly.
Stars: ✭ 31,079 (+155295%)
Mutual labels:  npm
Eyeglass
NPM Modules for Sass
Stars: ✭ 741 (+3605%)
Mutual labels:  npm
New Bee
åŧ€æēį¤žåŒē vue + springBoot - 前后分įĻģåžŽæœåŠĄįš„最äŊŗ厞čˇĩ
Stars: ✭ 619 (+2995%)
Mutual labels:  npm
Composer Asset Plugin
NPM/Bower Dependency Manager for Composer
Stars: ✭ 898 (+4390%)
Mutual labels:  npm
Np
A better `npm publish`
Stars: ✭ 6,401 (+31905%)
Mutual labels:  npm
Ntl
Node Task List: Interactive cli to list and run package.json scripts
Stars: ✭ 800 (+3900%)
Mutual labels:  npm
Server
🏊 A Github bot to keep repository forks up to date with their upstream.
Stars: ✭ 661 (+3205%)
Mutual labels:  webhook
Vue Admin Webapp
this is a admin project
Stars: ✭ 673 (+3265%)
Mutual labels:  npm
Shrinkpack
Fast, resilient, reproducible builds with npm install.
Stars: ✭ 774 (+3770%)
Mutual labels:  npm
Better Npm Run
🏃‍♂ī¸ Better NPM scripts runner
Stars: ✭ 635 (+3075%)
Mutual labels:  npm
Npm Font Open Sans
npm package of Open Sans (incl. CSS/LESS/SCSS)
Stars: ✭ 6 (-70%)
Mutual labels:  npm
Simplestatemanager
A responsive state manager which allows you to run different javascript at different browser widths
Stars: ✭ 632 (+3060%)
Mutual labels:  npm
Eslint Plugin Node
Additional ESLint's rules for Node.js
Stars: ✭ 740 (+3600%)
Mutual labels:  npm
Vscode Yarn
VSCode extension to manage yarn commands
Stars: ✭ 18 (-10%)
Mutual labels:  npm
Declarativ
A declarative HTML rendering library that is definitely not JSX.
Stars: ✭ 16 (-20%)
Mutual labels:  npm
Webhook
webhook is a lightweight incoming webhook server to run shell commands
Stars: ✭ 7,201 (+35905%)
Mutual labels:  webhook

Autodeploy

Autodeploy is a small and highly customizable CLI-Tool to automatically deploy your git repo and execute arbitrary commands/scripts after a specific git action (e.g. push, merge, ...) Currently only GitHub is supported.
logo

Installation

Using NPM

npm install @taschendieb/autodeploy -g

Using YARN

yarn global add @taschendieb/autodeploy

Usage

Go to "Settings" in your repository and add a webhook to your website/ip with port 1337 (example.com:1337). Subsequently check "Send me everything". The port can be changed in the configuration.

autodeploy deploy <giturl> <path> [name]

This will clone the repository into the specified path and register the webhook internally.

by default this will deploy your git repo after a push on master

For adding custom actions see the 'Customization' section

Finally run the server in listen mode:

autodeploy listen

or register the application to automatcally start on boot

autodeploy autostart

Configuration

Autodeploy was designed to be as flexible as possible. Therefore you can configure global settings and deployment actions via a JSON configuration. This file is located by default in "~/.autodeploy/config.json"

The Structure looks as follows:

{
    // This section is for application-wide configurations
    "settings": {
        "port": 1337 // port the server listens to
    },
    // Deployments are configured in this section
    "deployments": [
        {
            "name": "", // user-specified name
            "url": "", // url of repository
            "path": "", // path in filesystem
            "trigger": [
                {
                    "event": "push", // one of githubs webhook events
                    "branch": "master", // affected branch
                    // When trigger condition (event and branch matching) is true the following actions will be performed in the order they are listed
                    "actions": [
                        {
                            "name": "pull", // user-specified name for reference
                            "action": "git reset --hard origin/master && git pull" // shell commannd to execute
                        }
                    ]
                }
            ]
        }
    ]
}

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

Authors

Hannes Burger

Cornelius Denninger

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].