Giter Site home page Giter Site logo

jorgeluisrezende / dolly Goto Github PK

View Code? Open in Web Editor NEW
3.0 3.0 0.0 2.42 MB

Dolly is your little friend and a simple tool built in go to facilitate a git repository deploy

License: MIT License

Go 100.00%
go golang golang-tools deployment deploy git-deploy webhook devops-tools simple dolly

dolly's Introduction

Dolly.go

Single binary application

This is a simple tool to deploy your application by a git repository, written in golang. It works like a webserver that you have a endpoint that will be your hook.

Getting Started

First you need to have golang installed in your pc to compile the bin. You also will need ssh keys from your github/bitbucket repository configured, and a server with a ssh connection.

Installing

You can install it by the two ways:

from the git:

# git clone https://github.com/jorgeluisrezende/Dolly.git

or by the go package mannager:

# go get -v https://github.com/jorgeluisrezende/Dolly

After you download the source code, you need to navigate to project folder, like:

# cd "YOURGOPATH"/src/github.com/jorgeluisrezende/Dolly/

and build the bin:

# go build *.go

So, after that you will get a bin that you will run in you repo folder at the your server.

Deploy

Here we need a hash to be your endpoint, so you just need run the bin built in prev step:

"YOURGOPATH"/src/github.com/jorgeluisrezende/Dolly:# ./dolly -gh "whateveryouwanthere"

It will return to you a md5 hash, you don't need expecificaly a hash but it is a simple way to keep your and point "safe", you just need copy to use in the next step:

"Repo that will be deployed":# ./"YOURGOPATH"/src/github.com/jorgeluisrezende/Dolly/dolly -s -p "a port that you want" -hash "you hash got at the prev step" &

With that you will get up your hook server in the background, if you dont want to put a port the server will run at the 8001 port. Your endpoint will be something like this:

localhost:8001/"yourhash" or localhost:"yourport"/"yourhash"

Now you just need open it in you nginx, apache or whatever server you want and do the next step that is configurate your hook on bitbucket or github.

Here there is a tutorial how to configure a webhook in bitbucket

And here in github

Authors

License

This project is licensed under the MIT License

dolly's People

Contributors

jorgeluisrezende avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

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.