mirror of
https://github.com/hashicorp/vault.git
synced 2025-11-28 22:21:30 +01:00
Cut version 0.6.0-beta1
This commit is contained in:
parent
caa257be44
commit
ef5b37f46c
@ -19,8 +19,9 @@ GIT_COMMIT="$(git rev-parse HEAD)"
|
|||||||
GIT_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)"
|
GIT_DIRTY="$(test -n "`git status --porcelain`" && echo "+CHANGES" || true)"
|
||||||
|
|
||||||
# Determine the arch/os combos we're building for
|
# Determine the arch/os combos we're building for
|
||||||
XC_ARCH=${XC_ARCH:-"386 amd64 arm"}
|
XC_ARCH=${XC_ARCH:-"386 amd64"}
|
||||||
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd netbsd}
|
XC_OS=${XC_OS:-linux darwin windows freebsd openbsd netbsd}
|
||||||
|
XC_OSARCH=${XC_OSARCH:-"linux/386 linux/amd64 linux/arm darwin/386 darwin/amd64 windows/386 windows/amd64 freebsd/386 freebsd/amd64 freebsd/arm openbsd/386 openbsd/amd64 openbsd/arm netbsd/386 netbsd/amd64 netbsd/arm"}
|
||||||
|
|
||||||
GOPATH=${GOPATH:-$(go env GOPATH)}
|
GOPATH=${GOPATH:-$(go env GOPATH)}
|
||||||
case $(uname) in
|
case $(uname) in
|
||||||
@ -44,8 +45,7 @@ fi
|
|||||||
# Build!
|
# Build!
|
||||||
echo "==> Building..."
|
echo "==> Building..."
|
||||||
gox \
|
gox \
|
||||||
-os="${XC_OS}" \
|
-osarch="${XC_OSARCH}" \
|
||||||
-arch="${XC_ARCH}" \
|
|
||||||
-ldflags "-X github.com/hashicorp/vault/version.GitCommit='${GIT_COMMIT}${GIT_DIRTY}'" \
|
-ldflags "-X github.com/hashicorp/vault/version.GitCommit='${GIT_COMMIT}${GIT_DIRTY}'" \
|
||||||
-output "pkg/{{.OS}}_{{.Arch}}/vault" \
|
-output "pkg/{{.OS}}_{{.Arch}}/vault" \
|
||||||
-tags="${BUILD_TAGS}" \
|
-tags="${BUILD_TAGS}" \
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user