New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@taschendieb/autodeploy

Package Overview
Dependencies
Maintainers
2
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@taschendieb/autodeploy

Automatically run specified commands on incoming push of git repository

  • 1.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-85.71%
Maintainers
2
Weekly downloads
 
Created
Source

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

FAQs

Package last updated on 01 Apr 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc