Skip to content

Commit

Permalink
goreleaser编译项目
Browse files Browse the repository at this point in the history
  • Loading branch information
xiaomeng79 committed Oct 9, 2019
1 parent bc7f738 commit 54fa548
Show file tree
Hide file tree
Showing 4 changed files with 48 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -46,4 +46,7 @@ vendor
check.log
*.pid

*/myvariables.sh
*/myvariables.sh

# 编译目录
dist
42 changes: 42 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
builds:
- binary: srv-account
main: ./cmd/srv/account.go
goos:
# - windows
- darwin
- linux
- freebsd
goarch:
- amd64
- 386
- arm
- arm64
goarm:
- 6
- 7
#- binary: srv-user
# main: ./cmd/srv/user.go
# goos:
# - windows
# - darwin
# - linux
# - freebsd
# goarch:
# - amd64
# - 386
# - arm
# - arm64
# goarm:
# - 6
# - 7
#archive:
# name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
# replacements:
# darwin: Darwin
# linux: Linux
# windows: Windows
# 386: i386
# amd64: x86_64
# format_overrides:
# - goos: windows
# format: zip
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
## istio-micro
[![Build Status](https://travis-ci.org/xiaomeng79/istio-micro.svg?branch=master)](https://travis-ci.org/xiaomeng79/istio-micro) [![codecov](https://codecov.io/gh/xiaomeng79/istio-micro/branch/master/graph/badge.svg)](https://codecov.io/gh/xiaomeng79/istio-micro)
[![Build Status](https://travis-ci.org/xiaomeng79/istio-micro.svg?branch=master)](https://travis-ci.org/xiaomeng79/istio-micro) [![codecov](https://codecov.io/gh/xiaomeng79/istio-micro/branch/master/graph/badge.svg)](https://codecov.io/gh/xiaomeng79/istio-micro) [![Go Report Card](https://goreportcard.com/badge/github.com/xiaomeng79/istio-micro)](https://goreportcard.com/report/github.com/xiaomeng79/istio-micro)


#### 使用go-micro构建微服务示例请到一下仓库
Expand Down
2 changes: 1 addition & 1 deletion scripts/install.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash

source scripts/.variables.sh
set -uxe
set -xe

#定义变量
GOPROXY=${GOPROXY:-"https://goproxy.io"}
Expand Down

0 comments on commit 54fa548

Please sign in to comment.