Skip to content

Commit

Permalink
Fixing version number in --version when releasing
Browse files Browse the repository at this point in the history
  • Loading branch information
nmaupu committed Sep 10, 2018
1 parent fdc6145 commit f62ee0c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ script:

before_deploy:
- mkdir -p bin_release
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags '-extldflags "-static" -X main.AppVersion=$TRAVIS_TAG' -o bin_release/freenas-provisioner_linux-amd64
- CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -ldflags '-extldflags "-static" -X main.AppVersion=$TRAVIS_TAG' -o bin_release/freenas-provisioner_darwin-amd64
- CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -a -ldflags '-extldflags "-static" -X main.AppVersion=$TRAVIS_TAG' -o bin_release/freenas-provisioner_freebsd-amd64
- CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -ldflags "-extldflags '-static' -X main.AppVersion=$TRAVIS_TAG" -o bin_release/freenas-provisioner_linux-amd64
- CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -a -ldflags "-extldflags '-static' -X main.AppVersion=$TRAVIS_TAG" -o bin_release/freenas-provisioner_darwin-amd64
- CGO_ENABLED=0 GOOS=freebsd GOARCH=amd64 go build -a -ldflags "-extldflags '-static' -X main.AppVersion=$TRAVIS_TAG" -o bin_release/freenas-provisioner_freebsd-amd64

deploy:
provider: releases
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
BIN=bin

IMAGE_NAME=freenas-provisioner
IMAGE_VERSION=2.0
IMAGE_VERSION=2.1
REMOTE_NAME=$(DOCKER_ID_USER)/$(IMAGE_NAME)

all: build
Expand Down

0 comments on commit f62ee0c

Please sign in to comment.