Skip to content

Commit

Permalink
added RELEASE_VERSION- conflict with goreleaser env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
warrensbox committed May 25, 2018
1 parent c37e336 commit 1a36d66
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 11 deletions.
14 changes: 7 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,16 @@ jobs:
command: |
set +e
source version
export VERSION;
VERSION=$VERSION.${CIRCLE_BUILD_NUM}
export VERSION;
echo $VERSION
export RELEASE_VERSION;
RELEASE_VERSION=$RELEASE_VERSION.${CIRCLE_BUILD_NUM}
export RELEASE_VERSION;
echo $RELEASE_VERSION
go get -v -t -d ./...
git config user.email "warren.veerasingam@gmail.com"
git config user.name "warrensbox"
git tag -a ${VERSION} -m "Release"
git push origin ${VERSION}
curl -L https://git.io/goreleaser | VERSION=${VERSION} bash
git tag -a ${RELEASE_VERSION} -m "Release"
git push origin ${RELEASE_VERSION}
curl -L https://git.io/goreleaser | VERSION=v0.76.1 bash
echo $GOPATH
pwd
ls
Expand Down
6 changes: 3 additions & 3 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# Make sure to check the documentation at http://goreleaser.com
builds:
- ldflags:
- -s -w -X "main.version={{.Env.VERSION}}"
- -s -w -X "main.version={{.Env.RELEASE_VERSION}}"
- main: main.go
binary: tfswitch
goos:
Expand All @@ -12,15 +12,15 @@ builds:
goarch:
- amd64
checksum:
name_template: '{{ .ProjectName }}_{{.Env.VERSION}}_checksums.txt'
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
archive:
name_template: '{{ .ProjectName }}_{{.Env.VERSION}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
name_template: '{{ .ProjectName }}_{{.Env.RELEASE_VERSION}}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
replacements:
darwin: darwin
linux: linux
Expand Down
2 changes: 1 addition & 1 deletion version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
VERSION=0.3
RELEASE_VERSION=0.3

0 comments on commit 1a36d66

Please sign in to comment.