Skip to content

Commit 3cce7e6

Browse files
committed
feat(ci): use tag version in final binary
1 parent 14f00ed commit 3cce7e6

File tree

3 files changed

+50
-6
lines changed

3 files changed

+50
-6
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,5 @@ fixtures/project/node_modules
44
gui/node_modules
55
build
66
assets/bindata.go
7-
vendor
7+
vendor
8+
var/

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ watch: ## build assets
8383
cd gui && node_modules/.bin/webpack-dev-server --config webpack-dev-server.config.js --progress --inline --colors
8484

8585
build: bin ## build binaries
86-
GOOS=darwin GOARCH=amd64 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/darwin-amd64-pkgmirror cli/main.go
87-
GOOS=linux GOARCH=amd64 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-amd64-pkgmirror cli/main.go
88-
GOOS=linux GOARCH=386 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-386-pkgmirror cli/main.go
89-
GOOS=linux GOARCH=arm go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-arm-pkgmirror cli/main.go
90-
GOOS=linux GOARCH=arm64 go build -ldflags "-X main.RefLog=$(SHA1) -s -w" -o build/linux-arm64-pkgmirror cli/main.go
86+
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
87+
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
88+
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
89+
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
90+
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

pkgmirror.toml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
DataDir = "./var/data"
2+
CacheDir = "./var/cache"
3+
PublicServer = "http://localhost:8000"
4+
InternalServer = ":8000"
5+
LogDir = "./var/logs"
6+
LogLevel = "debug"
7+
8+
[Composer]
9+
[Composer.packagist]
10+
Server = "https://packagist.org"
11+
Enabled = true
12+
Icon = "https://getcomposer.org/img/logo-composer-transparent.png"
13+
14+
[Npm]
15+
[Npm.npm]
16+
Server = "https://registry.npmjs.org"
17+
Enabled = true
18+
Icon = "https://cldup.com/Rg6WLgqccB.svg"
19+
20+
[Bower]
21+
[Bower.bower]
22+
Server = "https://bower.herokuapp.com"
23+
Enabled = true
24+
Icon = "https://bower.io/img/bower-logo.svg"
25+
26+
[Static]
27+
[Static.drupal]
28+
Enabled = false
29+
Server = "https://ftp.drupal.org/files/projects"
30+
Icon = "https://www.drupal.org/files/druplicon-small.png"
31+
32+
[Git]
33+
[Git.github]
34+
Server = "github.com"
35+
Clone = "[email protected]:{path}"
36+
Enabled = false
37+
Icon = "https://assets-cdn.github.com/images/modules/logos_page/GitHub-Mark.png"
38+
39+
[Git.drupal]
40+
Server = "drupal.org"
41+
Clone = "https://git.drupal.org/{path}"
42+
Enabled = false
43+
Icon = "https://www.drupal.org/files/druplicon-small.png"

0 commit comments

Comments
 (0)