Skip to content

Commit

Permalink
feat(ci): use tag version in final binary
Browse files Browse the repository at this point in the history
  • Loading branch information
rande committed Oct 24, 2017
1 parent 14f00ed commit 3cce7e6
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@ fixtures/project/node_modules
gui/node_modules
build
assets/bindata.go
vendor
vendor
var/
10 changes: 5 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ watch: ## build assets
cd gui && node_modules/.bin/webpack-dev-server --config webpack-dev-server.config.js --progress --inline --colors

build: bin ## build binaries
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/darwin-amd64-pkgmirror cli/main.go
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-amd64-pkgmirror cli/main.go
GOOS=linux GOARCH=386 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-386-pkgmirror cli/main.go
GOOS=linux GOARCH=arm go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-arm-pkgmirror cli/main.go
GOOS=linux GOARCH=arm64 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-arm64-pkgmirror cli/main.go
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.RefLog=$(SHA1) -X main.Version=$(TRAVIS_TAG) -s -w" -o build/darwin-amd64-pkgmirror cli/main.go
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.RefLog=$(SHA1) -X main.Version=$(TRAVIS_TAG) -s -w" -o build/linux-amd64-pkgmirror cli/main.go
GOOS=linux GOARCH=386 go build -ldflags "-X main.RefLog=$(SHA1) -X main.Version=$(TRAVIS_TAG) -s -w" -o build/linux-386-pkgmirror cli/main.go
GOOS=linux GOARCH=arm go build -ldflags "-X main.RefLog=$(SHA1) -X main.Version=$(TRAVIS_TAG) -s -w" -o build/linux-arm-pkgmirror cli/main.go
GOOS=linux GOARCH=arm64 go build -ldflags "-X main.RefLog=$(SHA1) -X main.Version=$(TRAVIS_TAG) -s -w" -o build/linux-arm64-pkgmirror cli/main.go
43 changes: 43 additions & 0 deletions pkgmirror.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
DataDir = "./var/data"
CacheDir = "./var/cache"
PublicServer = "http://localhost:8000"
InternalServer = ":8000"
LogDir = "./var/logs"
LogLevel = "debug"

[Composer]
[Composer.packagist]
Server = "https://packagist.org"
Enabled = true
Icon = "https://getcomposer.org/img/logo-composer-transparent.png"

[Npm]
[Npm.npm]
Server = "https://registry.npmjs.org"
Enabled = true
Icon = "https://cldup.com/Rg6WLgqccB.svg"

[Bower]
[Bower.bower]
Server = "https://bower.herokuapp.com"
Enabled = true
Icon = "https://bower.io/img/bower-logo.svg"

[Static]
[Static.drupal]
Enabled = false
Server = "https://ftp.drupal.org/files/projects"
Icon = "https://www.drupal.org/files/druplicon-small.png"

[Git]
[Git.github]
Server = "github.com"
Clone = "git@github.com:{path}"
Enabled = false
Icon = "https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png"

[Git.drupal]
Server = "drupal.org"
Clone = "https://git.drupal.org/{path}"
Enabled = false
Icon = "https://www.drupal.org/files/druplicon-small.png"

0 comments on commit 3cce7e6

Please sign in to comment.