mirror of https://github.com/hashicorp/consul
Browse Source
* try arm builds * Update .circleci/config.yml Co-Authored-By: Matt Keeler <mkeeler@users.noreply.github.com> * Update .circleci/config.yml Co-Authored-By: Matt Keeler <mkeeler@users.noreply.github.com> * Update .circleci/config.yml Co-Authored-By: Matt Keeler <mkeeler@users.noreply.github.com>pull/6274/head
Alvin Huang
5 years ago
committed by
GitHub
2 changed files with 40 additions and 6 deletions
@ -0,0 +1,7 @@ |
|||||||
|
#!/bin/bash |
||||||
|
|
||||||
|
export GIT_COMMIT=$(git rev-parse --short HEAD) |
||||||
|
export GIT_DIRTY=$(test -n "`git status --porcelain`" && echo "+CHANGES" || true) |
||||||
|
export GIT_DESCRIBE=$(git describe --tags --always --match "v*") |
||||||
|
export GIT_IMPORT=github.com/hashicorp/consul/version |
||||||
|
export GOLDFLAGS="-X ${GIT_IMPORT}.GitCommit=${GIT_COMMIT}${GIT_DIRTY} -X ${GIT_IMPORT}.GitDescribe=${GIT_DESCRIBE}" |
Loading…
Reference in new issue