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 b86b58f
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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
2 changes: 1 addition & 1 deletion deploy/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ spec:
serviceAccountName: freenas-nfs-provisioner
containers:
- name: freenas-nfs-provisioner
image: docker.io/nmaupu/freenas-provisioner:2.0
image: docker.io/nmaupu/freenas-provisioner:2.1
env:
#- name: IDENTIFIER
# value:
Expand Down

0 comments on commit b86b58f

Please sign in to comment.