Skip to content

Commit 2dfaca5

Browse files
committed
In circle build, allow git describe to give us an error
1 parent acbd1aa commit 2dfaca5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

circle.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ version: 2
22
executorType: docker
33
containerInfo:
44
- image: golang:1.8
5-
cmd: ["/bin/bash"]
65
stages:
76
build:
87
workDir: /go/src/github.com/itzg/rcon-cli
@@ -15,7 +14,8 @@ stages:
1514
go build
1615
- type: deploy
1716
command: |
18-
tag=$(git describe --exact-match --tags)
17+
set +e
18+
tag=$(git describe --exact-match --tags 2> /dev/null)
1919
if [ $? = 0 ]; then
2020
go get github.com/mitchellh/gox
2121
go get github.com/tcnksm/ghr

0 commit comments

Comments
 (0)