gobuild

command module
v0.0.0-...-cf3502d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 22, 2016 License: MIT Imports: 15 Imported by: 0

README

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.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Godeps
_workspace/src/github.com/Unknwon/com
Package com is an open source project for commonly used functions for the Go programming language.
Package com is an open source project for commonly used functions for the Go programming language.
_workspace/src/github.com/Unknwon/macaron
Package macaron is a high productive and modular design web framework in Go.
Package macaron is a high productive and modular design web framework in Go.
_workspace/src/github.com/Unknwon/macaron/inject
Package inject provides utilities for mapping and injecting dependencies in various ways.
Package inject provides utilities for mapping and injecting dependencies in various ways.
_workspace/src/github.com/go-sql-driver/mysql
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
Go MySQL Driver - A MySQL-Driver for Go's database/sql package The driver should be used via the database/sql package: import "database/sql" import _ "github.com/go-sql-driver/mysql" db, err := sql.Open("mysql", "user:password@/dbname") See https://github.com/go-sql-driver/mysql#usage for details
_workspace/src/github.com/go-xorm/xorm
Package xorm is a simple and powerful ORM for Go.
Package xorm is a simple and powerful ORM for Go.
_workspace/src/github.com/gorelease/oauth2
Package oauth2 contains Martini handlers to provide user login via an OAuth 2.0 backend.
Package oauth2 contains Martini handlers to provide user login via an OAuth 2.0 backend.
_workspace/src/github.com/macaron-contrib/session
Package session a middleware that provides the session management of Macaron.
Package session a middleware that provides the session management of Macaron.
_workspace/src/golang.org/x/net/context
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
Package context defines the Context type, which carries deadlines, cancelation signals, and other request-scoped values across API boundaries and between processes.
_workspace/src/golang.org/x/net/context/ctxhttp
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
Package ctxhttp provides helper functions for performing context-aware HTTP requests.
_workspace/src/golang.org/x/oauth2
Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests.
Package oauth2 provides support for making OAuth2 authorized and authenticated HTTP requests.
_workspace/src/golang.org/x/oauth2/clientcredentials
Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0".
Package clientcredentials implements the OAuth2.0 "client credentials" token flow, also known as the "two-legged OAuth 2.0".
_workspace/src/golang.org/x/oauth2/facebook
Package facebook provides constants for using OAuth2 to access Facebook.
Package facebook provides constants for using OAuth2 to access Facebook.
_workspace/src/golang.org/x/oauth2/github
Package github provides constants for using OAuth2 to access Github.
Package github provides constants for using OAuth2 to access Github.
_workspace/src/golang.org/x/oauth2/google
Package google provides support for making OAuth2 authorized and authenticated HTTP requests to Google APIs.
Package google provides support for making OAuth2 authorized and authenticated HTTP requests to Google APIs.
_workspace/src/golang.org/x/oauth2/internal
Package internal contains support packages for oauth2 package.
Package internal contains support packages for oauth2 package.
_workspace/src/golang.org/x/oauth2/jws
Package jws provides encoding and decoding utilities for signed JWS messages.
Package jws provides encoding and decoding utilities for signed JWS messages.
_workspace/src/golang.org/x/oauth2/jwt
Package jwt implements the OAuth 2.0 JSON Web Token flow, commonly known as "two-legged OAuth 2.0".
Package jwt implements the OAuth 2.0 JSON Web Token flow, commonly known as "two-legged OAuth 2.0".
_workspace/src/golang.org/x/oauth2/linkedin
Package linkedin provides constants for using OAuth2 to access LinkedIn.
Package linkedin provides constants for using OAuth2 to access LinkedIn.
_workspace/src/golang.org/x/oauth2/odnoklassniki
Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki.
Package odnoklassniki provides constants for using OAuth2 to access Odnoklassniki.
_workspace/src/golang.org/x/oauth2/paypal
Package paypal provides constants for using OAuth2 to access PayPal.
Package paypal provides constants for using OAuth2 to access PayPal.
_workspace/src/golang.org/x/oauth2/vk
Package vk provides constants for using OAuth2 to access VK.com.
Package vk provides constants for using OAuth2 to access VK.com.
_workspace/src/google.golang.org/cloud/compute/metadata
Package metadata provides access to Google Compute Engine (GCE) metadata and API service accounts.
Package metadata provides access to Google Compute Engine (GCE) metadata and API service accounts.
_workspace/src/google.golang.org/cloud/internal
Package internal provides support for the cloud packages.
Package internal provides support for the cloud packages.
_workspace/src/google.golang.org/cloud/internal/datastore
Package datastore is a generated protocol buffer package.
Package datastore is a generated protocol buffer package.
_workspace/src/google.golang.org/cloud/internal/opts
Package opts holds the DialOpts struct, configurable by cloud.ClientOptions to set up transports for cloud packages.
Package opts holds the DialOpts struct, configurable by cloud.ClientOptions to set up transports for cloud packages.
_workspace/src/google.golang.org/cloud/internal/testutil
Package testutil contains helper functions for writing tests.
Package testutil contains helper functions for writing tests.
_workspace/src/gopkg.in/bsm/ratelimit.v1
Simple, thread-safe Go rate-limiter.
Simple, thread-safe Go rate-limiter.
_workspace/src/gopkg.in/ini.v1
Package ini provides INI file read and write functionality in Go.
Package ini provides INI file read and write functionality in Go.
_workspace/src/gopkg.in/redis.v3
Package redis implements a Redis client.
Package redis implements a Redis client.
_workspace/src/gopkg.in/redis.v3/internal/consistenthash
Package consistenthash provides an implementation of a ring hash.
Package consistenthash provides an implementation of a ring hash.
_workspace/src/gopkg.in/yaml.v2
Package yaml implements YAML support for the Go language.
Package yaml implements YAML support for the Go language.
api

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL