Giter VIP home page Giter VIP logo

gobuild's Introduction

gobuild web

Build Status gobuild-web

https://gobuild.io helps compile your github Go project into binary which you can easily download and share to your friend. An example download page: https://gobuild.io/gobuild/gopack

How to use

  1. Open browser https://gobuild.io
  2. Enter your repository name in the web.
  3. Wait for some minute, the binary will be packaged done.

Advanced

  1. Define how to specify the build command.

    You need install gopack before doing anything.

    go get -u -v github.com/gobuild/gopack
    # generate .gopack.yml
    gopack init
    

    Picke some text editor(ex: Vim), Change the script part to something else(ex: go build -tags hello)

  2. Test package in local

    I'm going to use pack a repo, then you will know how it works.

    $ go get github.com/gobuild/gopack
    $ cd $GOPATH/src/github.com/gobuild/gopack
    $ gopack pack -o dist.zip
    Packaging ...
    Done
    $ unzip -t dist.zip
    Archive:  dist.zip
    	testing: gopack                   OK
    	testing: README.md                OK
    	testing: LICENSE                  OK
    No errors detected in compressed data of dist.zip.
    
  3. Add badge to your repo readme.

Badge

gorelease

For developer

First generate github token

To run this project you need a redis-server. Addr and Password are read from ENV

REDIS_ADDR=localhost:6379
REDIS_PASSWORD=""
GITHUB_CLIENT_ID=12...
GITHUB_CLIENT_SECRET=l213.....
GITHUB_TOKEN=...
MYSQL_URI=...

Use redis db:0

$ bower install
$ go build
$ ./gobuild

Redis storage.

> GET user:codeskyblue:github_token
# github token

> GET user:codeskyblue:token
# web token, need to set in travis, ex
grABCDEFG

> SMEMBERS token:grABCDEFG:orgs
# list token orgnization, which org can upload use this token
1) "codeskyblue"
2) "gorelease"

> HGETALL orgs:codeskybule:repos
# list repos under org, and the store domain
1) "gosuv"
2) "dn-gobuild5.qbox.me"
3) "syncgit"
4) ""

> GET downloads:codeskyblue/gosuv
# total number of downloads

> GET downloads:codeskyblue/gosuv:linux-amd64
# total number of download linux-amd64 binary

> GET pageview:codeskyblue/gosuv
# download page PV

redis data backup can use: https://github.com/p/redis-dump-load, or see a script

Contribute

Fix typo is very welcome.

Have a good day.

Thanks

LICENSE

This repository is under MIT.

gobuild's People

Contributors

codeskyblue avatar gernest avatar

Watchers

dengwei 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.